Time duration calculator
| 12-hour | 24-hour | Military | Minutes past midnight |
|---|---|---|---|
| 12:00 am, midnight | 00:00 | 0000 | 0 |
| 7:00 am | 07:00 | 0700 | 420 |
| 12:00 pm, noon | 12:00 | 1200 | 720 |
| 1:00 pm | 13:00 | 1300 | 780 |
| 5:45 pm | 17:45 | 1745 | 1,065 |
| 6:00 pm | 18:00 | 1800 | 1,080 |
| 11:59 pm | 23:59 | 2359 | 1,439 |
Enter two times and get the gap as a decimal, as hours and minutes, and as total minutes. An end time earlier than the start is read as the next day, so 22:00 to 06:00 is eight hours. The same page converts decimal hours — 7.75 is 7:45 — totals a week of shifts, and reads 1745 as 5:45 pm.
How to calculate a duration
Crossing midnight is the case worth being careful about. Subtracting clock times directly gives a negative number when the end falls 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 happens here automatically. One ambiguity survives and is genuinely unresolvable: 09:00 to 09:00 could be zero hours or twenty-four. This reads it as twenty-four, on the grounds that nobody asks how long it is between a time and itself.
The decimal mode runs the other way, and that direction is where people get stuck. A decimal hour is a fraction of an hour, never a count of minutes: 7.75 is seven hours and 45 minutes, while 7.45 is seven hours and 27. Quarter, half and three-quarter hours land tidily on 0.25, 0.5 and 0.75; everything else is minutes over sixty, so twenty minutes is 0.33 and fifty is 0.83. Adding a week up brings in one more rule worth stating: under US federal law overtime is weekly, meaning hours beyond forty in a workweek, though several states add a daily threshold at eight hours and contracts elsewhere set their own.
The military mode is a different job on the same clock. Military time is the 24-hour clock written without a colon, so 5:45 pm is 17:45 and 1745, and one rule covers nearly all of it: after noon, add twelve to the hour. The exceptions are the two that catch everybody. Midnight is 12:00 am but 0000, and noon is 12:00 pm but 1200, so twelve is the single hour where the label and the number move in opposite directions. That one ambiguity is why hospitals, airlines and the military use the 24-hour clock at all. Written properly it is four digits with the leading zero kept, 0700 and never 700, and it is often spoken in hundreds, so 1700 is "seventeen hundred".
What people use it for
- Timing a shift that runs past midnight
- Converting a timesheet decimal like 7.75 back to hours and minutes
- Doing the payroll conversion between minutes and decimal hours
- Totalling the hours worked across a week of shifts, overtime split out
- Working out how long a booking or a lesson actually ran
- Reading a military or 24-hour time as a 12-hour one
Questions
Yes. An end time earlier than the start is treated as the following day, so 22:00 to 06:00 gives eight hours.
It reads as twenty-four hours. Asking for the gap between a time and itself is almost always a full day.
Yes, in either format. 5:30 pm and 17:30 are the same input.
Seven hours and 45 minutes. The decimal is a fraction of an hour, not a count of minutes.
Seven hours and 27 minutes, which is why reading it as 7:45 is such an expensive habit.
Divide by 60. Fifteen minutes is 0.25, twenty is 0.33, forty-five is 0.75.
Because pay is hours times rate, and h:mm cannot be multiplied. 7:45 times £12 is meaningless; 7.75 times £12 is £93.
Under US federal law, weekly: hours beyond forty in a workweek. Some states add a daily threshold at eight hours.
Normally, as 22:00-06:00. A finish earlier than the start is read as the next day.
Yes, once per shift entered. Put zero in if breaks are paid.
Change the threshold. Contracts and jurisdictions vary widely.
No, only the hours. Overtime is usually paid at a multiplier that depends on your contract; the hours calculator takes a rate.
The two-time mode does not, since both ends are times of day. Use the date calculator for a span across several days, or the weekly mode for a set of shifts.
6:00 pm. Subtract twelve from any hour of 13 or more.
Both are used. 0000 starts the day and 2400 ends the previous one; they are the same instant. This tool writes 0000.
Because the 12-hour clock counts from twelve rather than zero, so the twelfth hour keeps the number while flipping the label. It is the single most confusing hour in the system.
Not traditionally; 1745, spoken as "seventeen forty-five". The 24-hour clock in civilian use writes 17:45.
It is required. Seven in the morning is 0700, and writing 700 is not valid military time.