Tools Instantly

Time Duration Calculator

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

UnitSecondsMinutesHours
1 minute6010.0167
1 hour3,600601
1 day86,4001,44024
1 week604,80010,080168
30 days2,592,00043,200720

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.