Back to the blog

Time

How to count the hours of a shift that runs past midnight.

Count the hours between two times in your browser, nothing is uploaded: night shifts past midnight, 12 am and 12 pm, breaks and decimal hours.

By 3 min read

The Timer showing 4:59 in large figures inside a ring that has begun to empty, with Pause and Reset under it

From 22:00 to 06:00 is 8 hours, but subtracting the numbers gives minus 16. Here is how to count across midnight, and how to type the times that trip people up.

Add a day when the end comes first.

If the end time is earlier than the start, the shift ends the next day: add 24 hours to the end and subtract. 06:00 becomes 30:00, and 30:00 less 22:00 is 8 hours.

The calculator does this whenever the end comes first and says that it ran past midnight, so a night shift is never counted as a negative.

Noon, midnight and 12 am.

On the 12-hour clock, 12 am is midnight at the start of the day and 12 pm is noon. Because the words confuse people, you can type noon or midnight instead, or use the 24-hour clock, where midnight is 00:00 at the start of a day and 24:00 at its end.

An out time of 24:00 or midnight after an evening start counts to the end of the day, so 16:00 to midnight is 8 hours.

When you type 9 to 5.

Written down, 9 to 5 means nine in the morning to five in the afternoon. When the end is an hour typed on its own and reading it as the afternoon makes it later than the start, the calculator reads it that way and tells you; type 05:00 or 5 am for the morning.

When the field is left, the time is written out in full on your clock, so what was read is never hidden.

Breaks, rounding and decimals.

Breaks are taken off the time between. If your employer rounds times, choose the nearest 5, 6 or 15 minutes under More options; the rules differ, so it is your choice.

The answer comes in words, as h:mm and as decimal hours, so 7 hours 45 minutes is also 7.75 hours for a payroll form.

Further reading

Topics: hours calculator · hours between two times · overnight shift hours · night shift calculator · time duration calculator · 12 am or 12 pm

A little less theory. A little more doing.

Try it on your own terms, with a free browser tool.

Try the tool