How to Count Days Between Dates (Inclusive, Leap Years and Business Days)

Illustration of a wall calendar with circled dates, a desk clock, an hourglass, a planner and a pen on a desk

To count days between dates, subtract the earlier date from the later one: count the days left in the start month, add the full months in between, then add the day number of the end month. From March 9 to June 19, 2026, that is 22 + 30 + 31 + 19 = 102 days. Add 1 if you want to include both the start and end date.

That “add 1 or not” question is where most counting errors come from, followed by leap years, weekends and months of different lengths. This guide covers each one with worked examples you can check, plus how to add days or months to a date and how to count working days. For a quick answer, our days between dates calculator does the count with or without the end date and shows the result in weeks, months and working days too.

How to count days between dates by hand

The month-by-month method works for any two dates and needs nothing more than knowing how many days each month has.

  1. Count the days remaining in the start month after the start date. March has 31 days, so after March 9 there are 31 − 9 = 22.
  2. Add the length of every full month in between. April has 30 and May has 31.
  3. Add the day of the month of the end date. June 19 adds 19.

22 + 30 + 31 + 19 = 102 days. That is the number of days you would wait if you started on the morning of March 9 and stopped on the morning of June 19.

If you need a reminder of month lengths, the knuckle trick still works: make two fists, and every knuckle is a 31-day month while every dip between knuckles is a shorter month. February is the odd one out with 28 days, or 29 in a leap year.

The day-of-year shortcut

When both dates are in the same year, convert each one to its day number within the year and subtract. March 9, 2026 is day 68 and June 19, 2026 is day 170. 170 − 68 = 102. The day of the year calculator gives you those numbers instantly, and it is the method many spreadsheets and programs use behind the scenes.

Inclusive vs exclusive counting

The subtraction above is exclusive: it counts the number of nights, or “sleeps”, between two dates. It does not count both ends. Inclusive counting counts every calendar day you touch, including the first and last, which is always one more.

SituationCount typeMarch 9 to June 19, 2026
How long until an eventExclusive (end − start)102 days
Hotel nights or rental daysExclusive102 nights
Days of a festival, course or medication scheduleInclusive (end − start + 1)103 days
Days you were employed or on leaveUsually inclusive103 days
Legal and contract deadlinesCheck the wording; many exclude the first dayVaries

A quick test: if a course runs from Monday to Friday of the same week, subtraction gives 4, but you obviously attend 5 days. That extra day is the “fencepost” you need to add whenever both ends count.

Leap years and month lengths

A leap year adds February 29, so any span that crosses the end of February in a leap year is one day longer. February 1 to March 1 is 28 days in 2027 but 29 days in 2028.

The Gregorian rule has three parts:

  • A year divisible by 4 is a leap year (2024, 2028).
  • Except century years, which are not (1900, 2100).
  • Except century years divisible by 400, which are (2000, 2400).

So 2000 was a leap year but 1900 was not and 2100 will not be. That gives an average year length of 365.2425 days, which keeps the calendar aligned with the seasons. The National Institute of Standards and Technology explains how civil time and the calendar are kept in step on its Time and Frequency Division pages. The leap year calculator tells you whether any year qualifies and how many leap days fall between two years.

Counting business days

Many deadlines are in business days: shipping times, payment terms, notice periods. For these you count only Monday to Friday and then subtract public holidays.

Worked example

Count the working days from Monday, March 9, 2026 to Friday, June 19, 2026, including both dates.

  1. Inclusive calendar days: 102 + 1 = 103.
  2. That span is 14 full weeks plus 5 days. Fourteen weeks contain 14 × 5 = 70 weekdays, and the extra 5 days (Monday June 15 to Friday June 19) are all weekdays: 70 + 5 = 75 weekdays.
  3. Subtract federal holidays that fall on weekdays in the range: Memorial Day (Monday, May 25) and Juneteenth (Friday, June 19). That leaves 75 − 2 = 73 business days.

The U.S. Office of Personnel Management publishes the official list of federal holidays each year. State holidays and company closures vary, so check which ones apply to your deadline. The business days calculator handles five- and six-day work weeks and lets you subtract any number of holidays. If you want to know how many Mondays or Fridays fall in a range, the day counter breaks the count down by weekday.

For reference, 2026 has 261 weekdays. Most years have 260 or 261, and occasionally 262, which is why yearly pay calculations based on 2,080 hours are an approximation. Our guide to converting salary to hourly pay covers that in more detail.

Adding days, weeks and months to a date

Counting forward is the reverse problem: you know the start date and the length and want the end date.

Adding days and weeks

Days and weeks are fixed lengths, so adding them is reliable. 90 days after November 3, 2026 is February 1, 2027. Add weeks by multiplying by 7. The date calculator adds or subtracts any combination of years, months, weeks and days and tells you the weekday of the result.

Adding months

Months are not a fixed length, so “one month later” needs a rule. The usual convention is to keep the same day number: March 15 plus one month is April 15. When that day does not exist, most tools, including spreadsheet functions like EDATE, use the last day of the month. January 31 plus one month becomes February 28 (or 29 in a leap year).

This matters for deadlines. “Within 30 days” and “within one month” are not the same. Thirty days after January 30, 2027 is March 1, while one month after January 30 is February 28. The deadline calculator handles both and can move a deadline that lands on a weekend to the nearest working day.

Real examples: age, countdowns and deadlines

Exact age

Someone born on August 24, 1990 is, on October 31, 2026, 36 years, 2 months and 7 days old. Count whole years first (to August 24, 2026), then whole months (to October 24), then the remaining days (7). In total days that is 13,217. The age calculator shows the same result along with age in weeks, hours and minutes.

A countdown

From October 31, 2026 to December 25, 2026 is 55 days: 31 − 31 = 0 days left in October, 30 in November and 25 in December. Exclusive counting is what you want here, since you are asking how many days you have to wait.

A pregnancy or project timeline

Medical timelines count forward in weeks from a fixed date. Our guide on calculating a due date shows how 280 days from the first day of the last period becomes an estimated delivery date.

Interest and billing periods

Banks count days too. Many loans calculate daily interest using the actual number of days in the period divided by 365 (or 360), so a 31-day month accrues more interest than a 28-day one. If you want to see how that adds up, read how compound interest works.

Counting days in a spreadsheet

Spreadsheets store dates as serial numbers, which makes subtraction easy.

  • =B1-A1 gives the exclusive day count between the dates in A1 and B1.
  • =B1-A1+1 gives the inclusive count.
  • =NETWORKDAYS(A1,B1,H1:H10) counts weekdays, including both ends, minus any holidays listed in H1:H10.
  • =DATEDIF(A1,B1,"m") gives whole months between two dates; use “y” for whole years.
  • =EDATE(A1,3) adds three calendar months.

Format the result cell as a number, not a date, or you will see something like “April 11, 1900” instead of 102. Also write dates in ISO 8601 format (YYYY-MM-DD, such as 2026-06-19) whenever you share them. The ISO 8601 standard avoids the classic confusion where 06/07 means June 7 to an American and 6 July to almost everyone else.

Common mistakes

  • Forgetting the extra day. If both the first and last day count, add 1.
  • Assuming every month has 30 days. Over a few months the error adds up; over a year it is 5 or 6 days.
  • Ignoring February 29. Any span crossing the end of February in a leap year is one day longer.
  • Treating “one month” as “30 days”. They give different end dates most of the time.
  • Counting holidays as business days. Check which holidays apply in your state, country or company.
  • Mixing date formats. 03/04 might be March 4 or 3 April. Use YYYY-MM-DD to be safe.

Frequently asked questions

How many days are between two dates if I include both?

Subtract the earlier date from the later one and add 1. From June 1 to June 10 is 9 days exclusive and 10 days inclusive.

How many days are in a year?

365 in a common year and 366 in a leap year. The long-run average in the Gregorian calendar is 365.2425 days.

How do I count weeks between two dates?

Count the days and divide by 7. 102 days is 14 weeks and 4 days, or about 14.57 weeks. The week calculator shows both forms.

Does “within 10 business days” include today?

Usually not. Most deadlines start counting on the next business day, so 10 business days after Thursday, November 19, 2026 (skipping Thanksgiving on November 26) is Friday, December 4. Check the specific contract or rule if it matters.

How many months are between two dates?

Count whole calendar months by matching day numbers, then note the leftover days. March 9 to June 19 is 3 months and 10 days. The month counter does this for any dates.

Counting days comes down to three decisions: whether both ends count, whether weekends and holidays count, and whether “a month” means a calendar month or a fixed number of days. Settle those first and the arithmetic is simple subtraction. For anything with real consequences, such as a contract deadline or a leave entitlement, run the dates through a calculator and keep a note of which rule you used.