Moyan AI Training Institution LogoMoyan AI
All free tools
Time & Planning
Sep 2, 2026Free · no sign-up

Days Between Two Dates Calculator

Count the exact number of days, weeks and business days between two calendar dates entered as a day count.

Total days
165
Total weeks
23.6
Estimated business days
118

What the calculator measures

The calculator above expresses the distance between two calendar dates as:

  • Total days: The number of elapsed days in the interval.
  • Total weeks: Total days divided by 7.
  • Estimated business days: An approximate count of Monday-through-Friday workdays.

Instead of requesting month, day, and year separately, the tool uses a day-of-year number. January 1 is day 1, January 31 is day 31, and December 31 is day 365 in a standard year or day 366 in a leap year.

The extra full years field represents complete years located between the start and end portions of the date range. For example, a span from late 2024 to early 2026 contains no complete calendar year between its endpoint years except 2025, so you would enter 1.

How to use the tool above

  1. Convert the start date to its day-of-year number and enter it as the Start date.
  2. Convert the end date to its day-of-year number and enter it as the End date.
  3. Enter the number of complete years that fall between those two endpoint years.
  4. Review the displayed total days, total weeks, and estimated business days.
  5. Check whether leap years or endpoint-inclusion rules affect the count you need.

How the day count works

For two dates in the same year, the basic elapsed-day formula is:

total days = end day number − start day number

Suppose the start is day 100 and the end is day 150. The elapsed interval is 50 days. This approach normally excludes the start date: zero full days have elapsed when both day numbers are identical.

For a range that crosses a year boundary, count:

  1. The days remaining after the start date in the first year.
  2. The days in every complete year between the endpoint years.
  3. The end date’s day number in the final year.

In words, the method is:

total days = remaining first-year days + full intervening years + final-year days

A standard full year adds 365 days, while a leap year adds 366. Leap years generally occur in years divisible by 4, except century years must also be divisible by 400. Therefore, 2024 was a leap year, 2025 was not, and 2100 will not be one.

Total weeks are found with total weeks = total days ÷ 7. A decimal result represents complete weeks plus a partial week. For example, 45 days equals approximately 6.43 weeks, or 6 weeks and 3 days.

Worked example 1: A same-year project

Assume a US project begins on April 10, 2026, and ends on June 15, 2026.

Because 2026 is not a leap year, April 10 is day 100. June 15 is day 166:

166 − 100 = 66 elapsed days

The span is approximately 66 ÷ 7 = 9.43 weeks, equivalent to 9 weeks and 3 days. A simple weekday estimate uses five workdays per seven calendar days: 66 × 5 ÷ 7 ≈ 47.14, or about 47 business days.

That business-day figure is an estimate. The exact number depends on the weekdays of the endpoints and whether federal holidays, company closures, or other nonworking days are excluded.

Worked example 2: Crossing multiple years

Suppose a long-term plan runs from November 15, 2024, to February 10, 2026. November 15 is day 320 in leap year 2024, while February 10 is day 41 in 2026.

The calculation is:

  • Days after the start date in 2024: 366 − 320 = 46
  • Complete intervening year, 2025: 365
  • Days through February 10, 2026: 41
  • Total: 46 + 365 + 41 = 452 days

That equals approximately 452 ÷ 7 = 64.57 weeks, or 64 weeks and 4 days. A proportional weekday estimate is about 452 × 5 ÷ 7 ≈ 323 business days before adjusting for holidays.

For the calculator’s inputs, use start day 320, end day 41, and 1 extra full year. Notice that the leap-day effect belongs to the first-year remainder, not the 2025 full-year entry.

Understanding estimated business days

Business days usually mean Monday through Friday. They typically exclude weekends, but holiday treatment varies by country, state, province, employer, contract, and industry.

A general estimate can use:

estimated business days = total days × 5 ÷ 7

This is useful for rough schedules, but it cannot identify the exact weekdays or holidays from day-of-year numbers alone. For deadlines, legal notice periods, payroll, shipping commitments, or service-level agreements, verify the result against the applicable calendar and counting rules.

Common mistakes to avoid

  • Using day zero for January 1: Day-of-year numbering starts at 1.
  • Forgetting leap day: Dates after February 29 have day numbers one higher during a leap year.
  • Counting endpoint years as extra full years: Enter only complete years strictly between the start and end years.
  • Mixing elapsed and inclusive counts: Elapsed-day calculations generally exclude the start date. Add 1 if your use case requires both endpoints to be counted.
  • Treating weeks as business weeks: Seven calendar days make one calendar week, while a typical business week has five days.
  • Assuming business days exclude all holidays: A weekday estimate does not automatically account for federal, state, provincial, bank, or company holidays.
  • Reversing the dates unintentionally: Confirm that the end represents a later point than the start, especially when the end day number is smaller because the range crosses New Year’s Day.

For other practical calculators and experimental utilities, explore the AI Tool Lab. You can also create a free Moyan AI account to access available account features.

Frequently asked questions

How do I calculate the number of days between two dates?

Subtract the start day-of-year number from the end day-of-year number when both dates are in the same year. For ranges crossing years, add the first-year remainder, all complete intervening years, and the final date’s day number.

Do you count the start date when calculating days between dates?

Elapsed-day calculations normally exclude the start date, so identical dates have a difference of zero days. If you need an inclusive calendar count that includes both endpoints, add 1 to the elapsed total.

How do leap years affect the number of days between dates?

A leap year has 366 days instead of 365 because February has 29 days. Include the extra day whenever February 29 falls within the elapsed interval.

How many business days are between two dates?

A quick estimate is the total calendar days multiplied by 5/7. An exact count must account for endpoint weekdays, weekends, applicable holidays, and workplace closure rules.

How do I convert a date to a day-of-year number?

Add the days in all completed months to the day of the current month. For dates after February in a leap year, include February 29 when adding the completed months.

Get more done with Moyan AI

Free tools are just the start. A Moyan AI account adds goals, expense tracking, to-dos, the AI Tool Lab and an AI job hub in one place.

More free tools