How the calculation works
Calendar days = Gregorian end-date ordinal − start-date ordinal; completed weeks = whole days ÷ 7, rounded down. For timed inputs, UTC milliseconds = date ordinal × 86,400,000 + clock milliseconds − UTC offset minutes × 60,000. Elapsed duration = end UTC milliseconds − start UTC milliseconds. One minute = 60 seconds; one hour = 60 minutes.
A worked example
March 1 to March 16, 2026 is 15 calendar days: 2 completed weeks and 1 day. From 01:30 at UTC−05:00 to 03:30 at UTC−04:00 on the same date is 1 elapsed hour when those are the known offsets.
Before you use the result
Choose calendar dates when you only know a birth date or record date. Same date counts as zero; both endpoints are not counted inclusively. Date-only results do not establish elapsed hours, minutes or seconds. Timed mode needs the actual UTC offset at each endpoint, including any daylight-saving change: UTC−05:00 is −300 minutes; UTC+05:30 is 330. Offsets are entered, never inferred or checked against a time-zone database. Enter hours 0–23, minutes 0–59, seconds 0–59.999, and whole-minute offsets from −840 to 840. Dates and resulting UTC instants must be within years 0001–9999 in the proleptic Gregorian calendar. Epoch inputs are integer milliseconds since 1970-01-01T00:00:00Z, from −62135596800000 to 253402300799999. An elapsed duration is a different quantity, from 0 to 315537897599999 milliseconds. Timed days always mean 24 hours and timed weeks 168 hours; local calendar days can differ. Calculations use the ECMAScript/POSIX time model without leap seconds. No elapsed years are estimated from an average year. Birth time is required for exact timed age; age in completed years alone is insufficient. Baby weeks here are chronological, not gestational or corrected age. Ticket/record results do not account for business hours, pauses, vendor rules or service-level agreements. Fractional displayed units are rounded; milliseconds and the breakdown are exact.