Skip to content
TinySolve

Time Difference Calculator

Hours between two times, including night shifts — with decimal hours for a timesheet.

Runs in your browser — nothing you type is sent anywhere

9:00 am

5:30 pm

Break to deduct

Extra whole days in between

An end time earlier than the start is already treated as the next morning, so a night shift needs nothing here.

Time between

8 hours 30 minutes

Decimal hours (for a timesheet)
8.50
Total minutes
510

Decimal hours are not the minutes with a decimal point in front: 7 hours 20 minutes is 7.33 hours, not 7.20. Writing the second one on a timesheet is the commonest way people shortchange themselves.

About the Time Difference Calculator

Time arithmetic is awkward because the units are not decimal. Ten past nine to twenty past five is not 8.10 hours, and the mistake is easy to make and costly to repeat every week on a timesheet. This works in minutes throughout and gives you both forms: the hours and minutes people say, and the decimal hours payroll asks for.

Shifts that cross midnight are handled without you having to do anything. An end time earlier than the start is taken as the next morning, so 22:00 to 06:00 is eight hours rather than minus sixteen — the answer a naive subtraction gives and a surprising number of calculators still return.

Breaks can be deducted with one tap, since unpaid breaks are the other thing that makes a timesheet disagree with the clock. The result shows both the gross time and the net, so you can see what was taken off.

The second mode adds or subtracts a duration from a time, and tells you when the answer lands on a different day. That is the part usually left out: a reader that says "04:30" without saying "the next day" has told you half the answer.

Everything is done in whole minutes, deliberately. Floating-point hours introduce rounding errors that accumulate, and timezone-aware date objects would make a shift across a daylight saving change an hour longer or shorter than the clock actually said.

How to use the Time Difference Calculator

  1. Enter the start and end times

    Type 9:30, 0930 or 9:30 pm — all of them are understood, in 24-hour or 12-hour form.

  2. Deduct a break if there was one

    One tap for the usual lengths. Both the gross and the net time are shown.

  3. Read the decimal hours

    The figure a timesheet wants. 7 hours 20 minutes is 7.33 hours, not 7.20.

  4. Or switch to adding time

    Add or subtract hours and minutes from a time, and see when the answer falls on another day.

Frequently asked questions

Does it handle a shift that crosses midnight?
Yes, automatically. An end time earlier than the start is taken as the next morning, so 22:00 to 06:00 is eight hours. If a period spans more than one night, add the extra whole days.
What are decimal hours and why do they differ?
They are hours expressed as a decimal fraction rather than in minutes: 7 hours 20 minutes is 7.33 hours. Writing 7.20 instead is the commonest timesheet error, and it quietly shortchanges the person filling it in.
What time formats can I type?
9:30, 09:30, 930, 0930, 9.30, 9:30 am and 9:30 pm all work, in 24-hour or 12-hour form. Being generous about this is the difference between a tool that works and one that argues with you.
Is 12:00 am midnight or noon?
Midnight — and that is exactly the confusion the 24-hour clock exists to avoid. Whatever you type, the tool shows the time back in both forms so you can check it means what you intended.
Can I subtract an unpaid break?
Yes, with one tap for the usual lengths. Both the total time between the two clock times and the time after the break are shown, so a payroll query can be answered from the same screen.