πŸ“… Daily Life

πŸ“… πŸ“… Days Between Dates Calculator: How to Count Date Differences

Learn how to calculate the number of days between two dates. Covers the formula, leap year handling, business days vs calendar days, and practical examples.

⏱️ 7 min read🦉 365tool.net🌍 For everyone worldwide

Counting the number of days between two dates is one of the most practical date calculations in everyday life β€” project deadlines, contract durations, payment due dates, age calculations, and event planning all depend on it. The calculation seems simple but has subtle complications around leap years and month lengths that trip people up.

The Julian Day Number Method

The most reliable way to calculate days between any two dates is to convert both to a running day count (Julian Day Number) and subtract. While the full Julian Day formula is complex, a simplified version works for modern dates:

For any date (Year Y, Month M, Day D) after March 1, 1900:

  1. If M ≀ 2: set Y = Y βˆ’ 1 and M = M + 12
  2. A = floor(Y / 100)
  3. B = 2 βˆ’ A + floor(A / 4)
  4. JDN = floor(365.25 Γ— (Y + 4716)) + floor(30.6001 Γ— (M + 1)) + D + B βˆ’ 1524.5
  5. Days between = JDN2 βˆ’ JDN1

In practice, you'll use a calculator for this. But understanding the underlying logic helps you verify results.

The Practical Subtraction Method

For dates within the same year, you can count days using the "day of year" approach:

Days between = Day-of-year (end date) βˆ’ Day-of-year (start date)

Day of year reference (non-leap year)

Month Days in month Day range First day of month = Day #
January311–311
February28 (29 leap)32–5932
March3160–9060
April3091–12091
May31121–151121
June30152–181152
July31182–212182
August31213–243213
September30244–273244
October31274–304274
November30305–334305
December31335–365335

Same-year example

March 15 to November 28 (non-leap year):

  • March 15 = day 60 + 14 = day 74
  • November 28 = day 305 + 27 = day 332
  • Days between: 332 βˆ’ 74 = 258 days

Cross-year example

October 10, 2025 to March 5, 2026:

  • Days remaining in 2025 (from Oct 10): 365 βˆ’ (274 + 9) = 365 βˆ’ 283 = 82 days
  • Days in 2026 to March 5: 60 + 4 = 64 days (March 5 = day 64)
  • Total: 82 + 64 = 146 days

Calendar Days vs. Business Days

Calendar days count every day including weekends and holidays. Business days (working days) count only Monday–Friday, excluding public holidays.

Rough conversion: Business days β‰ˆ Calendar days Γ— (5/7) = Calendar days Γ— 0.714

Example: 30 calendar days β‰ˆ 21–22 business days (depending on how many weekends fall within the period).

For legal and financial contracts, "days" almost always means calendar days unless explicitly stated as "business days" or "working days."

Common Date Difference Use Cases

  • Loan terms: Interest accrues on calendar days. A 30-day loan from Feb 1 matures on March 2 (or March 3 in a leap year).
  • Project deadlines: Determining if a project started Jan 15 with a 90-day timeline ends on April 15 (exactly 90 calendar days).
  • Age calculation: How many days since a specific birth date β€” the foundation of precise age-in-days calculations.
  • Historical research: How many days between a historical event and today, or between two historical events.
  • Pregnancy: Pregnancy duration is tracked as 280 days (40 weeks) from the last menstrual period.

Try It Yourself! ✨

Use our free Days Between Dates Calculator — results appear as you type. No sign-up needed!

🚀 Open Days Between Dates Calculator Free

❓ Frequently Asked Questions

How do I calculate the number of days between two dates?
For dates in the same year: convert both to day-of-year numbers and subtract. March 15 = day 74, November 28 = day 332, difference = 258 days. For cross-year calculations: count remaining days in the first year, then add days elapsed in the second year. Online calculators handle leap years and month lengths automatically.
What is the difference between calendar days and business days?
Calendar days count every day including weekends and public holidays. Business days count only Monday–Friday, excluding holidays. There are roughly 5/7 as many business days as calendar days (about 71%). Legal and financial documents typically mean calendar days unless they specify "business days" or "working days."
How do leap years affect date calculations?
Leap years add one extra day (February 29) to the year, making them 366 days instead of 365. Any date calculation crossing February of a leap year must account for this extra day. A year is a leap year if divisible by 4, except century years which must be divisible by 400. 2024 and 2028 are leap years; 1900 and 2100 are not.
How many days are in each month?
31 days: January, March, May, July, August, October, December. 30 days: April, June, September, November. 28 days (29 in leap years): February. A useful mnemonic: make a fist and count knuckles (high = 31 days) and valleys (low = 30 or 28), starting with January on the first knuckle and July on the last.
How do I calculate days remaining until a future date?
Find today's day-of-year number, find the target date's day-of-year number, and subtract. If the target date is in a future year, add the remaining days of the current year (365 minus today's day number) plus the day number of the target date in its year. July 4 is day 185 of 2026; September 22 is day 265 β€” difference is 80 days.