How to Calculate Days Between Two Dates

Calendar days, business days, leap years and worked examples for common date calculations.

📖 5 min read  ·  Updated May 2025  ·  Date & TimeEveryday

Calculating days between dates comes up constantly — project deadlines, notice periods, contract lengths, anniversaries. The calculation is straightforward once you understand the method.

The Basic Method

Convert each date to a day number from a fixed reference point, then subtract. Most programming languages and spreadsheets do this automatically. For manual calculation, count the days remaining in the first month, add full months in between, then add days in the final month.

Example: Days from 15 March to 28 June. March remaining: 31 − 15 = 16 days. April: 30 days. May: 31 days. June: 28 days. Total: 16 + 30 + 31 + 28 = 105 days.

Leap Years

A leap year occurs every 4 years (year divisible by 4), except century years which are only leap years if divisible by 400. So 2000 was a leap year; 1900 was not. 2024, 2028, 2032 are upcoming leap years. Calculations spanning February of a leap year have one extra day compared to the same span in a non-leap year.

Business Days vs Calendar Days

Calendar days count every day including weekends. Business days (working days) exclude Saturdays and Sundays and typically also exclude public holidays. For legal and commercial purposes, notice periods and contract deadlines usually count in business or working days. "5 business days" starting Monday = Monday through Friday = arrives the following Monday.

Common Date Calculation Uses

  • Employment notice periods (typically 1–4 weeks)
  • Warranty and returns periods (30, 60, 90 days from purchase)
  • Loan and mortgage terms
  • Tax deadlines and filing periods
  • Pregnancy weeks (days from LMP)
  • Project timelines and milestones

Converting Days to Weeks and Months

Days to weeks: divide by 7. Days to months: divide by 30.44 (average days per month accounting for different month lengths). For exact month counting, count complete calendar months rather than using an average — this matters for contractual calculations.

Calculate days, weeks and months between any two dates instantly.

Use the Date Calculator →

Frequently Asked Questions

How do I count days between two dates?
Count remaining days in the first month, add complete months in between, then add days in the final month. Or use the Julian Day Number method: each date is converted to a sequential day count, then subtract to find the difference.
Does the count include the start date or end date?
This depends on the context. "Days after" a date typically excludes the start date. "Days remaining including today" includes the start date. Most calculators and legal contexts count the end date but not the start date.
How many days are in each month?
January 31, February 28 (29 in leap years), March 31, April 30, May 31, June 30, July 31, August 31, September 30, October 31, November 30, December 31. Mnemonic: knuckle months (Jan, Mar, May, Jul, Aug, Oct, Dec) have 31 days.
How do I calculate business days?
Count weekdays (Monday–Friday) between two dates, excluding public holidays. A rough estimate: multiply calendar days by 5/7 (about 71.4%). For exact counts around public holidays, our date calculator can show business day counts.
What year is the next leap year?
Leap years: 2024, 2028, 2032, 2036, 2040. The rule: divisible by 4 = leap year, except centuries (divisible by 100) are only leap years if also divisible by 400. 2100 will not be a leap year; 2000 was.