No it's the sum of the amount of presses or the total time pressed that activates the pump for x seconds.Powering s pump for x seconds each time a button is pressed is easy. Is that all you need or do you need some type of TOTALIZER that tells you how much time for the sum of all button presses? Or a way to monitor how many button presses were made?
X is an event accumulator that is increased by 1 with each button pressed. Sometimes this is called a "counter".
op - the event counter method is much easier than the time counter method. Is that ok, or do you want *both* methods operating at the same time, and the pump comes on when *either* 10 presses or 23 seconds accumulated button time is exceeded?