TOOLTIKI Lovable tool, really free
Date & time Time

Time duration calculator

From
To
Subtract
Duration in hours 8.5
Hours and minutes 8:30
Total minutes 510
Local · spans past midnight are read as the next day
Advertisement
320 × 100

Enter two times and get the gap between them three ways: as a decimal, as hours and minutes, and as total minutes. A second time earlier than the first is read as the next day.

How to calculate a duration

1 Enter the two times. Either 24-hour or am/pm is accepted.
2 Use the subtract field to take off a break or an interruption.
3 Read whichever unit you need — decimal for arithmetic, h:mm for people.

Crossing midnight is the case worth being careful about. Subtracting clock times directly gives a negative number when the end is on the next day, which is why so many spreadsheets show a stream of hashes for a night shift. Adding twenty-four hours to a negative result is the fix, and it is what happens here automatically. The remaining ambiguity is genuinely unresolvable: 09:00 to 09:00 could be zero or twenty-four hours. This reads it as twenty-four, on the grounds that nobody asks how long it is between a time and itself.

Questions

Yes. An end time earlier than the start is treated as the following day, so 22:00 to 06:00 gives eight hours.

MDN — requestAnimationFrameMDN — background tab timer throttling
Advertisement
300 × 250
Was this tool any good?
INTERNAL SIGNAL ONLY · WE USE IT TO FIND TOOLS WORTH REBUILDING