Skip to main content

Free Date Difference Calculator: Days, Weeks, Months, Business Days & Date Math

Calculate the exact difference between any two dates — total days, calendar years/months/days, business days (weekends excluded), weeks, and hours — or add and subtract days/weeks/months from a base date. 100% client-side, calendar-accurate.

Calendar-Accurate

Months and years use real calendar arithmetic with day-of-month borrow logic — "3 years, 2 months, 14 days" matches what a calendar would show, not approximate 30-day months.

Business Days Built In

Get the count of working days (Mon-Fri) between any two dates, automatically excluding Saturdays and Sundays. Useful for SLAs, notice periods, and project plans.

Add & Subtract Mode

Switch to the second tab to do date arithmetic: pick a base date, then add or subtract any combination of years, months, weeks, and days. End date is calculated instantly.

100% Client-Side

All math runs in your browser — no server call, no tracking, no signup. Works offline once the page is loaded.

Exact Date Math, Calendar-Accurate, With Business Days Built In

The naive way to count days between two dates — subtract one timestamp from the other, divide by 86,400,000 — almost works, except when DST shifts the clock by an hour in the middle. Add "months" into the mix and the math gets harder still: January 31 plus one month is February 28, not March 3. Our Free Date Difference Calculator handles both the unit breakdown (days, weeks, calendar Y/M/D, business days, hours, minutes) and the add-or-subtract mode with the day-of-month and leap-year edge cases that naïve arithmetic gets wrong. All math runs in your browser via the native Date API, anchored to UTC-midnight so DST never contaminates a day count.

Pair this with our Age Calculator (from-birth duration with lifetime totals), Time Zone Converter (translate wall-clock across IANA zones), Timestamp Converter (Unix epoch ↔ ISO 8601), and the Cron Expression Builder (schedule recurring jobs across days, weeks, and months).

Where Date Difference Math Matters

ContextTypical Question
Project deadlinesHow many business days from kick-off to launch?
Pregnancy & gestationWeeks pregnant given a last-period date or due date.
Contract notice periods60 days from termination notice — exact end date.
Visa & immigrationDays remaining on a 90-in-180 Schengen calculation.
Subscription anniversariesCalendar months until annual renewal.
Trial-period expiry30-day trial start → exact expiration including weekends.

Which Unit Should You Use?

UnitHow It Is ComputedUse For
Total daysfloor((end − start) / 86,400,000ms)Any literal day counting (subscriptions, deadlines, age in days)
Total weekstotalDays / 7Pregnancy gestation, sprint counting
Calendar Y/M/DYear/month/day subtraction with borrow (like Age Calculator)Human-readable durations ("3 years, 2 months, 14 days")
Business daysLoop day-by-day, count only Mon-FriSLA timers, contract notice, work-day deadlines
Total months(endYear − startYear) × 12 + (endMonth − startMonth) − (endDay < startDay ? 1 : 0)Loan amortization, payroll periods

Date Math Edge Cases This Tool Handles

1. Leap-Day Anniversaries

Feb 29 + 1 year = Feb 28 (clamped); Feb 29 + 4 years = Feb 29 (the next leap year preserves the anniversary).

2. Month-End Roll-Over

Jan 31 + 1 month = Feb 28/29, not Mar 3. Subsequent additions continue from the clamped day, not the original 31st.

3. DST Day-Count Drift

Math runs in UTC-midnight; daylight saving transitions never add or remove a fractional day.

4. Negative Differences

If end < start, the calendar breakdown shows a negative duration with the same magnitude — useful for "how long ago" calculations.

Free Date Difference Calculator: Days, Weeks, Months, Business Days | Toolk