Free tool · Date and time
Time duration calculator
This time duration calculator finds the elapsed days, hours and minutes between a start and an end, each with its own date, time and optional UTC offset. Nothing you type leaves your device.
- Free
- No sign-up
- Runs in your browser
- Same time zone for both
- Elapsed time, no daylight saving guesses
- Total hours
- 57.4167
- Total minutes
- 3,445
- Total days
- 2.3924
- Total seconds
- 206,700
How to use the Time Duration Calculator
- Enter Start date and time and End date and time. The example runs from 1 March 2027 at 22:15 to 4 March at 07:40.
- Leave Start time zone and End time zone the same if both times are in one place. For a trip, pick the UTC offset of the clock at each end.
- Read the span under Time duration, with total hours, minutes, days and seconds below it.
- Press Copy to keep the result with its start and end as one line of text.
How do you calculate the duration between two times?
Turn each moment into a count of minutes from one fixed starting point and subtract. From Mon, Mar 1, 2027 22:15 to Thu, Mar 4, 2027 07:40 the difference is 3,445 minutes. Divide by 60 for hours, which gives 57.4167, and split what is left into days, hours and minutes: 2 days, 9 hours, 25 minutes. Because the tool works in whole minutes, the seconds count is simply the minutes times 60, 206,700 here.
This tool takes a date with every time, so the span can run for days, across a month end, or across a leap day. Between 12:00 on 28 February and 12:00 on 1 March the answer is 2 days in 2028, because that year has a 29 February, and 1 day in 2027. A span from 1 January 2027 to 1 January 2028 is 365 days. Times with no date, such as a shift from 22:00 to 06:30, are covered by the hours calculator; here the same shift on 1 and 2 June is 8 hours, 30 minutes.
The end can be earlier than the start. The tool then counts backward, shows the same length and adds a note. Swapping the example dates gives 2 days, 9 hours, 25 minutes again.
How do time zones change the duration?
Clock times in two places are not on the same scale. A trip that leaves at 18:00 on the clock of a place at UTC-05:00 and arrives at 08:00 the next morning on the clock of a place at UTC+01:00 looks like 14 hours on the two clocks, and it is really 8 hours. The tool converts each time to UTC by subtracting its offset: 18:00 at UTC-05:00 is 23:00 UTC, and 08:00 at UTC+01:00 is 07:00 UTC the next day. The difference between those two UTC moments is the elapsed time.
With both zones set to UTC+00:00, the same two clock readings give 14 hours, which is the figure you get by ignoring zones. Going west can shorten the clock difference too: leaving at 17:00 at UTC+09:00 and arriving at 10:00 on the same date at UTC-08:00 is 10 hours, even though the arrival clock reads earlier than the departure clock.
The tool does not look up daylight saving. You pick the offset that applied at each place on that date, so a place that moved its clocks that week has a different offset before and after the change. The list covers UTC-12:00 to UTC+14:00, including the half hour and 45 minute offsets.
Durations for common cases
Each row is worked out by the same code that runs when you type your own times.
| Case | From and to | Duration | Total hours |
|---|---|---|---|
| Overnight shift | Jun 1, 2027 22:00 to Jun 2, 2027 06:30 | 8 hours, 30 minutes | 8.5 |
| Three day project | Mar 1, 2027 09:00 to Mar 4, 2027 17:30 | 3 days, 8 hours, 30 minutes | 80.5 |
| Across midnight | Jun 1, 2027 23:50 to Jun 2, 2027 00:10 | 20 minutes | 0.3333 |
| Over a leap day | Feb 28, 2028 12:00 to Mar 1, 2028 12:00 | 2 days | 48 |
| Over a year end | Dec 31, 2027 23:00 to Jan 1, 2028 01:00 | 2 hours | 2 |
| Trip, offsets -05:00 to +01:00 | Mar 10, 2027 18:00 to Mar 11, 2027 08:00 | 8 hours | 8 |
| Trip, offsets +09:00 to -08:00 | Mar 10, 2027 17:00 to Mar 10, 2027 10:00 | 10 hours | 10 |
| A whole common year | Jan 1, 2027 00:00 to Jan 1, 2028 00:00 | 365 days | 8,760 |
The total hours column shows the same span as a decimal, handy for a pay sheet or a log. For the days between two dates alone, use days between dates, and to move a date forward by a set number of days, use the date calculator. For converting one clock time to another place, the time zone converter shows the local time there.
Use it with
- Hours Calculator: hours between two times.
- Date Calculator: add or subtract days from a date.
- Time Zone Converter: meeting planner across cities.
Questions
How do I find the time between two dates and times?
Enter both with their dates. From Mon, Mar 1, 2027 22:15 to Thu, Mar 4, 2027 07:40 the result is 2 days, 9 hours, 25 minutes, which is 57.4167 hours.
How do I calculate duration across midnight?
Give the end a date one day later. For 22:00 on 1 June to 06:30 on 2 June the result is 8 hours, 30 minutes.
How do I work out duration across time zones?
Choose the UTC offset of each end. For UTC-05:00 at 18:00 to UTC+01:00 at 08:00 the next day, the elapsed time is 8 hours.
What happens if the end is before the start?
The tool counts backward, shows the same length of time and adds a note that the end is earlier.
Does it count leap days?
Yes. 28 February 12:00 to 1 March 12:00 is 2 days in 2028 and 1 day in 2027.
Does it handle daylight saving time?
It does not look up clock changes. Pick the offset that applied at each place on that date, and the elapsed time follows.
The tool's results are computed in your browser by the code on this page; the explanations are checked against the tool's own output.