This Time Duration Calculator finds the elapsed time between a start date and time and an end date and time. Enter both values using your device's local date-time controls to see a breakdown in days, hours and minutes, plus total elapsed hours.
How to calculate time duration
- Choose the starting date and local time.
- Choose the ending date and local time.
- Make sure the end is not earlier than the start.
- Read the duration breakdown and total hours.
The inputs use your browser's local time zone. There is no separate time-zone selector, seconds field, break deduction or multi-shift entry in this version.
How the duration is calculated
The calculator converts both local date-time values to timestamps, subtracts the start from the end, and converts the elapsed milliseconds into whole minutes. It then displays complete 24-hour days, remaining hours and remaining minutes.
Elapsed milliseconds = end timestamp − start timestamp.
Total hours = elapsed milliseconds ÷ 3,600,000.
Because the calculation uses actual timestamps, daylight-saving changes can make the elapsed time differ from a simple wall-clock subtraction. For example, crossing a spring-forward transition may skip one local clock hour. The displayed day component is based on 24-hour elapsed blocks.
Worked example
From Monday at 09:00 to Tuesday at 17:30:
- Monday 09:00 to Tuesday 09:00 = 24 hours.
- Tuesday 09:00 to Tuesday 17:30 = 8 hours 30 minutes.
- Total = 32 hours 30 minutes = 1 day, 8 hours and 30 minutes, or 32.5 hours.
Use cases
- Measure the elapsed time between project milestones or events.
- Calculate a simple shift duration when there are no unpaid breaks to deduct.
- Compare the length of appointments, travel legs or service windows.
Limitations and time-zone considerations
- Both inputs are interpreted in the browser's local time zone; the tool cannot compare two different time zones directly.
- It does not subtract lunch breaks, add multiple work intervals or export timesheets.
- It reports elapsed duration, not business days, working hours or calendar-month differences.
- If you need a cross-zone calculation, use a dedicated time-zone duration tool and confirm the daylight-saving rules for both locations.
For comparison, timeanddate documents date/time intervals and separate time-zone tools, while Toggl and TimeDateLab offer additional shift, break or time-format workflows. Those features are useful gaps to know about; this widget intentionally handles one local start/end interval only, so the limitations are stated clearly.
For time calculations in other formats, see our Hours Calculator and Date Calculator.
