Days Between Dates Calculator : Calendar & Business Days

Calculate the exact duration between any two dates on the Gregorian calendar. Get instant breakdowns of total calendar days, business working days, weeks, months, and equivalent hours with leap-year precision and zero Daylight Saving Time skew.

How Do You Calculate Days Between Two Dates?

To calculate days between two dates, normalize both dates to UTC midnight (00:00:00) to prevent Daylight Saving Time skew. Subtract the earlier timestamp from the later one, then divide the difference by 86,400,000 milliseconds (the number of milliseconds in a standard 24-hour day).

Quick Calendar Presets:
Total Calendar Days
30 Days
4 weeks and 2 days
Approx. 1 month
Business Days (M–F) 22 Days
Weekend Days 8 Days
Total Hours 720 hrs
ISO 8601 Duration P30D

Why Date Math Breaks on Daylight Saving Time (DST)

A common software development flaw is calculating days between dates using local midnight timestamps:

// Flawed local time subtraction:
const days = (new Date("2026-11-02") - new Date("2026-11-01")) / (1000 * 60 * 60 * 24);
// Can output 1.0416 or 0.9583 during DST clock transitions!

During Daylight Saving Time transitions, a calendar day has either 23 hours (spring forward) or 25 hours (fall back). Calculating differences without normalizing to UTC introduces fractional decimal errors.

Our calculator normalizes all calendar dates to UTC Midnight (00:00:00 UTC), ensuring that every 24-hour interval reflects exact calendar days regardless of geographical timezone changes.

Common Date Spans & Day Counts Reference Matrix

Calendar Span Total Calendar Days Typical Working Days Standard Application
1 Week 7 Days 5 Days Standard work sprint.
1 Month (Average) 30.42 Days 21 – 22 Days Payroll and billing cycles.
1 Quarter (Q1 – Q4) 90 – 92 Days 64 – 66 Days Corporate financial reporting.
Standard Year 365 Days 260 – 261 Days Annual contract terms.
Leap Year 366 Days 261 – 262 Days Years divisible by 4 (e.g., 2024, 2028).

The Gregorian Calendar 400-Year Rule

A common misconception is that a leap year occurs every four years. Under the Gregorian calendar established by Pope Gregory XIII in 1582, leap years follow a precise 3-step rule to prevent calendar drift:

  1. Every year evenly divisible by 4 is a leap year (e.g., 2024, 2028).
  2. The Century Exception: If the year is evenly divisible by 100, it is NOT a leap year (e.g., 1900 was not a leap year).
  3. The 400-Year Exception: If the year is evenly divisible by 400, it IS a leap year (e.g., 2000 was a leap year; 2400 will be a leap year).

Business Days vs. Public Holidays

This calculator counts standard Monday through Friday workdays and excludes Saturdays and Sundays. Because statutory bank holidays, public observances, and religious holidays vary significantly across international jurisdictions (such as US Federal Holidays vs. UK Bank Holidays), specific statutory non-working days must be adjusted manually based on your local labor calendar.

Related Date, Time & Calculation Utilities:

Frequently Asked Questions

How do you calculate business days between two dates?

To calculate business days, count the total days between the two dates and exclude every Saturday and Sunday. In a typical 7-day week, there are exactly 5 working business days and 2 weekend days.

Should the start date or end date be included in the count?

Standard date math calculates the duration between dates, meaning the start date is counted and the end date is excluded (0 days elapsed on the same day). If you need to count both calendar dates as full days, enable the "Include end date" checkbox.

How does this tool handle leap years?

The calculator implements official Gregorian calendar rules, adding a 29th day to February during leap years (such as 2024 and 2028) and properly applying the 400-year century leap exception.

Why does Daylight Saving Time affect day calculations?

Local time changes during Daylight Saving Time create 23-hour or 25-hour days. This tool normalizes both dates to UTC Midnight (00:00:00), preventing fractional decimal day errors.

What is an ISO 8601 duration code?

ISO 8601 represents time durations starting with the letter P, followed by numbers and period designators (e.g., P30D represents a duration of exactly 30 days).