Elapsed duration between two date-times equals the day count between the dates converted to minutes, plus the difference between the two clock times, converted back to hours and minutes. From 5 March 2026 14:20 to 9 March 2026 09:05 is 90 hours 45 minutes, not a plain 4-day, 5-hour subtraction.
What is the elapsed duration between two multi-day timestamps?
The dates are 4 calendar days apart (9 minus 5 March), equal to 4 × 1,440 = 5,760 minutes. The clock-time difference is 09:05 minus 14:20: 545 minutes since midnight minus 860 minutes since midnight equals −315 minutes, because 09:05 is earlier in the day than 14:20. Total elapsed minutes: 5,760 − 315 = 5,445. Dividing by 60 gives 90.75 hours, or 90 hours and 45 minutes (0.75 × 60 = 45).
How do I combine a day count with a clock-time difference?
Convert both date-times to a single count of minutes since a common reference: multiply the day-of-year (or a running day count) by 1,440 and add the hour times 60 plus the minute. Subtract the earlier total from the later total, then convert the result back to whole hours and minutes by dividing by 60 and keeping the remainder. The time duration calculator handles the same-day version of this arithmetic directly.
How do I check a multi-day duration result?
A negative clock-time difference, as in this example, is expected whenever the end time of day is earlier than the start time of day; it is corrected by the day-count term, not by adding 24 hours twice. Confirm the final minutes total is divisible cleanly: 5,445 ÷ 60 = 90 remainder 45, and 45 minutes is a valid remainder because it is less than 60.
What mistakes produce a wrong elapsed time?
A common mistake is subtracting only the clock times and ignoring the days between them, or subtracting only the dates and ignoring the clock times. Another is adding 24 hours for every calendar date crossed rather than every full day elapsed, which double-counts when the times of day are close together. This method does not by itself resolve a daylight-saving transition, covered separately in the daylight-saving guide.
What does this method assume about time zones and DST?
This calculation assumes both timestamps share the same time zone and that no daylight-saving transition falls between them; a transition changes the true elapsed time by an hour without changing either clock reading. It also assumes standard 24-hour days and does not apply to a leap-second adjustment, which is outside the scope of a calendar-based calculator.
Source for the external fact
Timeanddate.com explains that a daylight-saving transition changes the true elapsed hours between two clock readings even when the calendar dates and displayed times look ordinary, in its DST transition guide.
A second example that crosses a leap day
From 28 February 2024 22:10 to 3 March 2024 06:45 is 80 hours 35 minutes. The dates are 4 calendar days apart (3 minus 28... counted through 29 February, since 2024 is a leap year), equal to 4 × 1,440 = 5,760 minutes. The clock-time difference is 06:45 minus 22:10: 405 minutes since midnight minus 1,330 minutes since midnight equals −925 minutes. Total elapsed minutes: 5,760 − 925 = 4,835, which is 80 hours 35 minutes (4,835 ÷ 60 = 80 remainder 35).
A day-by-day breakdown of the 90-hour-45-minute example
| Segment | Hours |
|---|---|
| 5 March 14:20 to midnight | 9 hours 40 minutes |
| 6, 7, 8 March (three full days) | 72 hours |
| Midnight to 9 March 09:05 | 9 hours 5 minutes |
| Total | 90 hours 45 minutes |
Splitting the span into a partial first day, whole middle days, and a partial last day gives the same total as the minutes-since-reference method, and is easier to sanity-check by eye.
A third example that crosses a calendar year
From 30 December 2025 20:00 to 2 January 2026 05:15 is 57 hours 15 minutes. The dates are 3 calendar days apart even though the year number changes partway through; the day count does not need special handling at 31 December, because the day-of-year method from the date-difference guide already treats a year boundary as one more day, not as a reset. The clock-time difference is 05:15 minus 20:00 = −885 minutes; total elapsed minutes: 3 × 1,440 − 885 = 3,435, or 57 hours 15 minutes.
How to check a result by adding the duration back to the start
Adding the computed 90 hours 45 minutes to the starting timestamp, 5 March 2026 14:20, should reproduce the ending timestamp exactly: 14:20 plus 90 hours is 08:20 on 9 March, and plus the remaining 45 minutes is 09:05 on 9 March — matching the stated end time. A duration that does not reproduce the original end timestamp when added back to the start signals an arithmetic slip in either the day count or the clock-time step.
How this differs from counting only work hours
This method counts every elapsed hour on the clock, including nights, weekends, and any hours outside a work shift. A payroll or scheduling calculation that should count only hours within a defined working schedule, such as the one in the decimal-hours guide, needs to exclude the hours between shifts rather than sum every hour a multi-day clock reading spans. The two calculations answer different questions from the same pair of timestamps.
Elapsed hours vs the number of calendar dates touched
The main example, 5 March 14:20 to 9 March 09:05, touches five distinct calendar dates — 5, 6, 7, 8, and 9 March — but that is not the same question as elapsed hours. Multiplying 5 dates by 24 hours gives 120 hours, far more than the actual 90 hours 45 minutes, because the first and last of those five dates are only partially covered by the span. Counting calendar dates touched is a valid answer to “how many different days does this appointment span,” but it is not a substitute for the minutes-based elapsed-time calculation above.
The simplest case: a span under a day that still crosses midnight
The same day-count-plus-clock-time method reduces cleanly to its simplest form for a span shorter than 24 hours. From 10 June 2026 23:30 to 11 June 2026 01:15 is 1 hour 45 minutes: the dates are 1 calendar day apart (1 × 1,440 = 1,440 minutes), the clock-time difference is 01:15 minus 23:30 = −1,335 minutes, and 1,440 − 1,335 = 105 minutes, or 1 hour 45 minutes. This is the same formula used for the multi-day examples above, just with a day-count of 1 instead of 4.
How a swapped start and end time reveals itself
Entering the later timestamp as the start and the earlier one as the end produces a negative day count and a negative total, rather than a small positive number. Reversing the main example — starting from 9 March 2026 09:05 and ending at 5 March 2026 14:20 — gives a day count of −4 and a total of −5,445 minutes, or −90 hours 45 minutes. A calculator that returns a negative elapsed duration is not reporting an unusual result; it is flagging that the two timestamps were entered in the wrong order.
Related calculators
Calculate a same-day duration in the time duration calculator, check the special case of a daylight-saving change in the DST elapsed-time guide, and confirm the calendar-day count in the date difference calculator.