How to Count Days Between Dates (Inclusive vs. Exclusive)
Ask two people how many days there are from one date to another and you may get two answers that differ by exactly one. This guide explains why, and walks through the counting rules that matter for deadlines, business days, leap years and month-end dates.
Last updated:
Two ways to count: subtract, or include both ends
There are two common ways to count the days between dates. The first is plain subtraction: take the end date minus the start date. This tells you how far apart the dates are. The second counts both the start date and the end date as full days, which tells you how many calendar days a period spans. The second answer is always one more than the first.
Take October 23, 2026 to December 25, 2026. By subtraction the gap is 63 days. If you count October 23 and December 25 as days of the period, it spans 64 days. Hotel stays show the difference neatly: three nights covers four calendar days. Nights are the subtraction count; days are the inclusive count.
Neither method is wrong. Use subtraction for elapsed time or time remaining, and the inclusive count when every date in the range matters on its own, such as the number of days an event runs or the number of days a prescription covers.
- Exclusive (subtraction): end minus start. October 23 to December 25 is 63 days.
- Inclusive: end minus start, plus one. The same range spans 64 days.
- Nights vs. days: 3 nights = 4 days, the classic off-by-one.
"100 days after" is not the same as "day 100"
Phrases like "100 days from today" and "the 100th day" are easy to mix up. "100 days after" a date means adding 100 to it: 100 days after October 23, 2026 is January 31, 2027. If you call the starting date day 1, then day 100 falls on the starting date plus 99, which is January 30, 2027.
This matters for milestones, countdowns and streaks. A habit tracker that starts at day 1 and a project plan that starts at day 0 will label the same date differently. When you share a date with someone else, a short note such as "counting today as day 1" removes the ambiguity.
Countdowns have the same issue. If today is October 23 and the target is December 25, subtraction gives 63 days to go. Someone who only wants the full days in between, excluding both today and the target date, would say 62.
Deadlines and contract periods
Legal systems have their own conventions for counting periods, and they vary by country and by context. A widespread approach, used for example in Japan's Civil Code, is that when a period is expressed in days, weeks, months or years, the day on which the period starts is not counted, unless the period begins exactly at midnight. The period then ends at the close of its last day.
Under that approach, a 14-day period that starts on Friday, October 23, 2026 begins counting on October 24 and ends at the end of Friday, November 6. If you counted October 23 as day 1 you would land on Thursday, November 5, one day early.
Periods measured in months usually follow the calendar rather than a fixed number of days. Under the Japanese rule, a one-month period agreed on June 10, 2026 starts counting on June 11 and ends on July 10. If the final month has no matching date, the period ends on the last day of that month: one month counted from January 31, 2028 ends on February 29, 2028, because there is no February 31. Many systems also push a deadline that falls on a Sunday or public holiday to the next working day.
These are general principles, not a substitute for the wording in front of you. Contracts, court rules, tax authorities and online services often define their own counting method, and phrases like "within 14 days of receipt" or "including the date of delivery" change the answer. For anything with legal or financial consequences, check the specific agreement or ask the issuing organization which calendar date they consider final.
Counting business days
Payment terms, shipping estimates and administrative processing times are often stated in business days. The usual definition is weekdays minus public holidays, but the details depend on the organization and the country: some businesses work Saturdays, and many close for extra days around New Year or in summer.
As an example, take November 1 to November 30, 2026, a span of 30 days. It contains 9 Saturdays and Sundays, leaving 21 weekdays. In Japan, two public holidays fall on weekdays that month, Culture Day on Tuesday, November 3 and Labor Thanksgiving Day on Monday, November 23, so the business-day count there is 19. In a country with different holidays, the same month would give a different total.
Also watch the starting point. "Within 3 business days" usually treats the day of the request as day 0, but practices differ. When a deadline really matters, agree on an actual calendar date rather than a count.
- Exclude weekends: the standard Monday-to-Friday working week.
- Exclude public holidays: check substitute holidays as well, and use the right country's calendar.
- Exclude company closures: year-end shutdowns or local holidays are not in public calendars.
Leap years and month-end dates
Months have different lengths, and February changes length from year to year. The Gregorian rule is that a year divisible by 4 is a leap year, except years divisible by 100, which are not, except years divisible by 400, which are. So 2000 was a leap year, 2028 will be one, and 2100 will not.
The effect is easy to see. From February 1 to March 1 is 28 days in 2027 but 29 days in 2028. If you treat every month as 30 days, your result can be off by one or two days depending on the months involved. Decide up front whether a period is defined in months or in days.
Adding months to the end of a month is another trap. One month after January 31 would be February 31, which does not exist, so most calculations move the result to the last day of February. Software libraries and billing systems do not all handle this the same way, so check the actual dates for subscriptions or contracts that start on the 29th, 30th or 31st.
Using the calculators
Once you have settled the counting rule, the arithmetic is mechanical. The days-between calculator gives the number of days between two dates and lets you switch between exclusive and inclusive counting. To find the date a set number of days before or after a starting date, use the date plus days calculator. For a countdown from today to a target date, the days-until calculator shows the days remaining, or the days elapsed if the date has passed.
The business days calculator counts both the start and end dates, lets you choose which weekdays to exclude, and can also exclude public holidays. Note that its holiday option uses Japan's national holidays, including substitute holidays, so if you work to another country's calendar, turn that option off and subtract your local holidays yourself.
Whatever tool you use, the most reliable habit is to state the assumptions in plain words first: whether the first day counts, whether weekends and holidays are excluded, and whether the period is in months or days. Most date disagreements come from those assumptions, not from the arithmetic.