Time Duration Calculator
Pick a start and an end date and time to see exactly how long it lasts, in years, days, hours, minutes and seconds.
time duration calculator
How the duration is worked out
The calculator subtracts the start from the end. The exact gap is turned into milliseconds, then split into larger units.
Duration = End − Start
Total hours = total seconds ÷ 3,600 and Total days = total seconds ÷ 86,400
The calendar breakdown (years, months, days) follows real month lengths, so 31 January to 1 March is not treated as a fixed number of days.
Example
From 15 Jan 2026, 08:30 to 4 Mar 2026, 17:45, the gap is 1 month, 17 days (counting from 15 Jan to 4 Mar is 48 days), plus 9 hours and 15 minutes. In total that is 48 days 9 hours 15 minutes, or 1,161.25 hours.
Time unit table
| Unit | Seconds | Minutes | Hours |
|---|---|---|---|
| 1 minute | 60 | 1 | 0.0167 |
| 1 hour | 3,600 | 60 | 1 |
| 1 day | 86,400 | 1,440 | 24 |
| 1 week | 604,800 | 10,080 | 168 |
| 30 days | 2,592,000 | 43,200 | 720 |
Time duration FAQs
Can I calculate across midnight? Yes. Set the end date to the next day. For example, 22:00 to 06:00 the next day is 8 hours.
What if my end date is before my start date? The calculator swaps them for you and shows a note, so you always get a positive result.
Does it handle daylight saving time? It uses your device’s local time, so a day that gains or loses an hour is counted with the real elapsed time.
