Find Difference between two hours?

If you want someone to check your results, you’d need to supply all the input values and the datatypes of variables used too.

Don’t expect people to assume or gather this info from scattered places all the previous posts.

One thing that jumps to mind tho’

  if (CycleCompare < minPumpCycles)  { ... }
  else if (CycleCompare > minPumpCycles) { ... }
  ...
  { ... }

Either you are missing an else statement, or you are not setting your values for CycleCompare == minPumpCycles.