Date & time

Hours calculator

Enter a start time and an end time to get the gap in hours and minutes. If the end time is earlier than the start, the calculator treats the finish as the next day, so a night shift past midnight is counted in full. Times use the 24-hour clock.

AdvertisementGoogle AdSense

Time between two clocks

Duration
Minutes
Decimal hours
Midnight

How it works

A duration is the gap between two times. Minutes are not decimals: you cannot subtract 09:40 from 17:15 by writing 17.15 minus 9.40. Convert each time to minutes past midnight, subtract, then turn the result back into hours and minutes.

Minutes past midnight = hours ร— 60 + minutes. If the end is earlier than the start, add 1,440 minutes (24 hours) before you subtract. That is the midnight crossing. Extra whole days add further blocks of 1,440 minutes, for a finish that is one or more calendar days later even when the clock time is not earlier. An unpaid break is subtracted at the end.

Decimal hours are the net minutes divided by 60. 35 minutes is 0.58 hours to two decimal places, so 7 hours and 35 minutes is 7.58 hours, not 7.35.

The method ignores seconds, time zones, and the clocks going forward or back. See when the clocks change if the shift includes the last Sunday in March or October. For whole dates, use days between dates.

Worked examples

09:40 to 17:15, same day. Start = 9 ร— 60 + 40 = 580 minutes. End = 17 ร— 60 + 15 = 1,035 minutes. Gap = 1,035 โˆ’ 580 = 455 minutes. 455 รท 60 = 7 hours, remainder 35. The duration is 7 hours and 35 minutes, or 7.58 decimal hours.

22:00 to 06:00. 22:00 is 1,320 minutes and 06:00 is 360. Because 360 is smaller, add 1,440. Gap = 360 + 1,440 โˆ’ 1,320 = 480 minutes, which is 8 hours. The finish is the next morning.

09:40 to 17:15 with a 30 minute break. The gross gap is 455 minutes. 455 โˆ’ 30 = 425 minutes, which is 7 hours and 5 minutes.

AdvertisementGoogle AdSense

Frequently asked questions

What happens if the end time is earlier than the start?

The period crossed midnight, so the calculator adds 24 hours before it subtracts. 22:00 to 06:00 is 8 hours, not a negative time and not 16 hours the wrong way.

How do I count a finish on a later day when the clock time is later?

Equal or later clock times stay on the same day unless you add extra days. 09:00 today to 09:00 tomorrow is 1 extra day, which is 24 hours. 09:00 to 17:00 the next afternoon is 1 extra day plus 8 hours, which is 32 hours.

How do I take off a lunch break?

Enter the unpaid break in minutes. 09:40 to 17:15 is 7 hours and 35 minutes. A 30 minute break leaves 7 hours and 5 minutes. The break is subtracted after the clock gap is worked out.

Why is 7 hours and 35 minutes not 7.35 hours?

There are 60 minutes in an hour, not 100. 35 minutes is 35/60 of an hour, which is 0.58 hours to two decimal places. 7 hours and 35 minutes is 7.58 decimal hours. Using 7.35 understates the time.

Does this follow the clocks going forward or back?

No. It uses the times on the clock faces. A shift that includes the last Sunday in March or the last Sunday in October in the UK is one hour shorter or longer than the faces suggest. The clock change page lists those dates.