Hi, this is the scenario I'm trying to solve.
Between the hours of 06:00 - 19:00 we charge at rate 1.
After 19:00 and before 06:00 we charge at rate 2.
I'm creating a time calculator where you enter the start time and end time and it automatically calculates how many hours of which rate we should charge.
I've managed to work everything else out, but am struggling when the end time goes past midnight (or rather more specifically, it works for any time between 24:00 - 24:59, but does not like from 01:00 onwards).
So what I need it to work out is how many hours past 19:00. Can anyone help please? :-)
Bookmarks