Time duration calculator

Enter a start and end date-time in your browser's local calendar to measure elapsed time. The calculator returns calendar components plus total hours, minutes, and seconds. An end before the start is rejected instead of shown as a negative duration.

Read days, hours, minutes, and seconds as the decomposition; read totals as aggregate values. At month and year boundaries, calendar units preserve date shape while totals describe elapsed seconds. This suits appointments, trips, reservations, and shifts. It is not legal-age, contractual-deadline, payroll, or holiday-entitlement advice; age planning should follow the engine's February 29-to-February 28 convention, not a jurisdiction-specific rule.

How this is calculated

The runtime parses valid datetime-local values in the browser's local convention and uses calendar-aware components alongside elapsed seconds. Total minutes and hours are floored from elapsed seconds. This is elapsed duration, not working time, billable time, holiday time, or timezone conversion.

Assumptions and limits

Worked examples

Overnight interval

Inputs: Start: 2026-11-03 09:30; end: 2026-11-04 14:15

Result: 1 day, 4 hours, 45 minutes; 28 total hours; 1,725 total minutes; 103,500 total seconds

Both dates are required: the engine measures the overnight interval instead of treating the next afternoon as same-day.

Thirty minutes across midnight

Inputs: Start: 2026-02-28 23:45; end: 2026-03-01 00:15

Result: 30 minutes; 0 total hours; 30 total minutes; 1,800 total seconds

Crossing midnight does not make the answer one day. The exact interval is 30 minutes, so total hours remains zero.

Full calendar year

Inputs: Start: 2026-01-01 00:00; end: 2027-01-01 00:00

Result: 1 calendar year; 8,760 total hours; 525,600 total minutes; 31,536,000 total seconds

The year component preserves calendar meaning while totals provide an aggregate reporting value.

Boundary cases

Common mistakes

Continue your planning

Time-Zone Planning for International Meetings Without the Guesswork

Content updated · Maintained by NoteMide · Report a correction

Frequently asked questions

Does the calculator include the start date or minute?

It measures from the starting date-time to the ending date-time; the start is the interval's beginning, not an inclusive date count.

Can the duration cross midnight, a month, or a year?

Yes. Enter the date and time at both endpoints; the engine handles boundaries and exposes totals.

Why is a full year not best read as a fixed day count?

Calendar years and months vary. The runtime preserves components and calculates totals from elapsed seconds.

Does this account for time zones or daylight saving time?

The page compares browser-local values and has no IANA selector. Normalize locations with the Time Zone Converter and verify DST gaps or repeated fall-back times.

What should I use for a workday deadline?

Use a business-day or deadline tool and record its convention. Duration does not remove weekends, holidays, breaks, or business-hour limits.