Duration: \(\Delta t = \text{Timestamp}_2 - \text{Timestamp}_1\)
Time duration: how long between two times, without the mental arithmetic
Working out the gap between two times looks easy until the minutes do not line up. Nine fifteen to five forty is not eight hours and twenty-five minutes by any shortcut — it is eight hours and twenty-five minutes by careful subtraction, and the careful part is borrowing an hour when the end minutes are smaller than the start minutes. This calculator does that borrowing for you, and it also handles durations that cross midnight, which is where most people go wrong by hand.
Take a shift from 09:15 to 17:40. Subtract the hours first: 17 minus 9 is 8 hours. Subtract the minutes: 40 minus 15 is 25 minutes. The duration is 8 hours and 25 minutes. Now take a night shift from 22:30 to 06:15 the next morning. The end time is smaller than the start time, so the shift crosses midnight: from 22:30 to midnight is 1 hour 30 minutes, and from midnight to 06:15 is 6 hours 15 minutes, giving 7 hours 45 minutes in total. The calculator treats the second time as the following day when it is earlier than the first, which is the assumption that matches how night shifts actually work.
Durations are also the basis for pay. An 8 hour 25 minute shift at £15 an hour is 8.4167 hours times £15, which is £126.25 — and the decimal hours are where the money hides, because 25 minutes is 0.4167 of an hour, not 0.25. The same conversion matters for billing, for overtime, and for annual leave, where a day of leave is usually 7.5 hours rather than 8. Keep the minutes honest and the money follows.
If you are adding durations rather than subtracting times — a journey with two legs, or a project with three phases — add the minutes first and carry every 60 minutes into an hour. It is the same borrowing, run in reverse, and it is the step that most people skip when they add 45 minutes and 30 minutes and get 75 minutes instead of 1 hour 15 minutes.
Frequently Asked Questions (FAQ)
Can this calculator span across overnight shifts?
Yes. The calculation engine fully accounts for transitions across midnight and across calendar date boundaries.
Does the calculator handle the clocks going forward or back?
It counts the time between two points on the calendar, so a daylight saving change inside the window can make the answer look an hour out against what a clock on the wall would show. If your start and end times straddle a clock change, treat the result as calendar elapsed time and adjust by an hour if you need true worked hours.
Can I subtract a lunch break from the result?
Not directly, because the tool only sees a start and an end. The practical way is to calculate the elapsed time, then subtract the break yourself. For a 9-to-5 shift with an hour for lunch, that means taking the 8-hour elapsed figure and removing the hour, leaving 7 working hours.
How is this different from the time and date calculator?
This one measures the gap between two moments you already know, while the time and date calculator starts from one date and lands on a new one by adding or subtracting days. Use this tool when both ends of the period are fixed, and the other one when you know the start and need to find the finish.


