How the difference is calculated
The whole number of days between two dates is the difference in their timestamps divided by the length of a day:
Weeks are days ÷ 7, and the years-months-days breakdown borrows from larger units the same way age is calculated, using real calendar month lengths so leap years are counted correctly.
Worked example
From 1 January 2026 to 31 December 2026:
Counting business days
Business days exclude weekends — Saturdays and Sundays are skipped — which is how delivery windows, contract terms and payroll periods are usually counted. This calculator can switch to business-day mode, though public holidays are not subtracted automatically since they vary by country and state.