"How many days until…?" sounds like the easiest question in arithmetic, yet two careful people can get answers that differ by one, and a deadline counted the wrong way can cost real money. The disagreements almost always come from a handful of choices: whether to count the first day, the last day, or both; what a "month" means when months have different lengths; which days count as business days; and, for anyone writing software, how time zones and daylight saving time sneak extra or missing hours into the math. This guide walks through each one with worked examples you can check in our Date Difference Calculator.

Key Takeaways
  • Plain subtraction is exclusive: it counts the days after the start date through the end date. Add 1 if both the first and last day should count.
  • Months and years are not fixed lengths, so "1 month and 29 days" depends on a convention near month ends. Total days never does.
  • Business days are weekdays minus holidays. U.S. federal holidays that fall on a Saturday are observed on Friday, and Sunday holidays on Monday.
  • Daylight saving time makes some local days 23 or 25 hours long, which breaks date math done with clock timestamps. Count whole calendar days instead.
  • Deadlines have their own rules. Courts, agencies, and contracts define how to count; check the rule that applies. This is general information, not legal advice.
Advertisement

The Basic Rule: Subtraction Counts the Gaps

Picture a fence. Ten fence posts in a row have nine gaps between them. Dates work the same way: subtracting one date from another counts the gaps, the number of times you move from one day to the next. From Monday to Friday of the same week, you move forward four times, so Friday minus Monday is 4 days. That is exclusive counting: the start date is not counted, the end date is. It is what you want for "how many days until," for countdowns, and for "how long ago."

Inclusive counting counts the posts instead of the gaps. If an event runs Monday through Friday, it lasts 5 days, because you were there on both the first and the last day. Inclusive counts are always exactly one more than exclusive counts:

Exclusive days = end − start   and   Inclusive days = end − start + 1

Worked example. From Monday, November 2, 2026 to Thursday, December 31, 2026 is 59 days exclusive and 60 days inclusive. In weeks, 59 days is 8 weeks and 3 days. Enter those dates in the calculator and switch "Include the end date" on and off to see both.

Which one should you use?

Counting Across Months by Hand

When dates are in different months, the reliable manual method is to finish the first month, add whole months, then add the days of the last month. From March 15 to June 10, 2026:

The trap is month length. April, June, September, and November have 30 days; February has 28, or 29 in a leap year; the rest have 31. Treating every month as 30 days, or every year as 365, accumulates small errors that add up quickly over long spans.

Why "Months and Days" Has More Than One Answer

Total days is unambiguous. Months are not, because a month is not a fixed number of days. Most people agree that March 15 to April 15 is one month, and that March 15 to June 10 is 2 months and 26 days. The disagreement starts near month ends, when the start day doesn't exist in a later month.

Take January 31 to March 1, 2026. February has no 31st, so when is "one month after January 31"? Our calculators treat the month as complete on the 1st of the following month, so the answer is exactly 1 month (29 days), and January 31 to February 28 is 0 months and 28 days. Other tools count from the last day of the shorter month and would call February 28 a full month. The same question decides when someone born on February 29 has a birthday in a common year. The Age Calculator uses March 1, consistent with the rule above, while some laws and institutions use February 28. Neither approach changes the total-days figure; they only change how it is split into months and days.

Leap Years

Under the Gregorian calendar, a year is a leap year if it is divisible by 4, except that century years must also be divisible by 400. So 2024 and 2028 are leap years, 2000 was, and 1900 and 2100 are not. A leap year adds February 29, so February 28 to March 1, 2028 is 2 days rather than 1, and a calendar year that contains a February 29 is 366 days long. If you are counting "one year" in days, check whether the span includes a leap day: January 1, 2026 to January 1, 2027 is 365 days, but January 1, 2028 to January 1, 2029 is 366.

Business Days

Business days are usually Monday through Friday, minus holidays. For a quick count without holidays, take the number of whole weeks in the span and multiply by 5, then add the weekdays in the leftover days. In the November 2 to December 31, 2026 example, the 59 days after November 2 are 8 whole weeks (40 weekdays) plus Tuesday, Wednesday, and Thursday, December 29 to 31, for 43 weekdays.

U.S. federal holidays and observed dates

Federal law, 5 U.S.C. 6103(a), lists 11 legal public holidays: New Year's Day, the Birthday of Martin Luther King, Jr., Washington's Birthday, Memorial Day, Juneteenth National Independence Day (added in 2021), Independence Day, Labor Day, Columbus Day, Veterans Day, Thanksgiving Day, and Christmas Day. Five have fixed dates and six fall on a set weekday, such as the fourth Thursday in November.

When a fixed-date holiday lands on a weekend, most federal employees get a weekday off instead. The Office of Personnel Management explains the rule: a Saturday holiday is observed on the preceding Friday, and a Sunday holiday on the following Monday. Some examples:

HolidayActual dateObserved
Independence Day 2026Saturday, July 4Friday, July 3
Juneteenth 2027Saturday, June 19Friday, June 18
Independence Day 2027Sunday, July 4Monday, July 5
Christmas Day 2027Saturday, December 25Friday, December 24
New Year's Day 2022Saturday, January 1Friday, December 31, 2021

The last row shows a pitfall for anyone writing code: a holiday can be observed in the previous calendar year. Back to the running example, three federal holidays fall on weekdays between November 3 and December 31, 2026 (Veterans Day on Wednesday, November 11, Thanksgiving on Thursday, November 26, and Christmas on Friday, December 25), so the 43 weekdays become 40 business days.

Not everyone uses the federal calendar

Federal observed dates are a sensible default, but they are not universal. The Federal Reserve Banks stay open on the Friday before a Saturday holiday, which matters for payment and transfer timing. States add their own holidays, many private employers observe fewer than 11, and stock exchanges publish their own schedules. If a count has to match a particular organization, start with the weekday total and subtract that organization's closures.

Adding Days to a Date

Going forward from a date is the mirror image of counting between two dates. Thirty calendar days after Saturday, October 31, 2026 is Monday, November 30, 2026. Adding business days means stepping forward one weekday at a time and skipping holidays: 10 business days after Friday, November 20, 2026 is Monday, December 7, because Thanksgiving on November 26 is skipped. Without the holiday it would be Friday, December 4. The calculator's add and count modes agree with each other: count the business days from November 20 to December 7 exclusively and you get 10 back.

Time Zones and Daylight Saving Time

Spreadsheets store dates as whole day numbers, so they rarely get day counts wrong. Hand-written code is another story. A common approach is to create two "midnight" timestamps in local time, subtract them, and divide by the 86,400,000 milliseconds in a 24-hour day. That works until the span crosses a daylight saving change. In most of the United States, clocks sprang forward on Sunday, March 8, 2026, so March 8 was only 23 hours long. Local midnight on March 1 to local midnight on March 31 is 719 hours, not 720, which is 29.96 "days." Round that down and you get 29, one short of the correct 30. In November the opposite happens, with a 25-hour day.

The fix is to stop measuring hours. Convert each calendar date to a day number on a calendar with no clock changes, such as UTC, and subtract the day numbers. That is how our calculator works, so its answers are the same in every time zone. Leap seconds don't matter either: they are inserted into clock time, not the calendar, and Unix-style timestamps ignore them (our article on Unix time explains why).

Time zones still matter for deadlines expressed as a time of day. A deadline of "11:59 p.m. Eastern" on the 15th is 8:59 p.m. on the 15th in California and 5:59 p.m. in Hawaii (during daylight time), and for someone in Tokyo it arrives on the 16th. Convert the deadline to your own time zone before counting.

Deadlines, Contracts, and "Within N Days"

Legal deadlines often specify exactly how to count. Rule 6(a) of the Federal Rules of Civil Procedure is a widely cited example. For periods stated in days, you exclude the day of the event that triggers the period, count every day including weekends and legal holidays, and include the last day, but if the last day is a Saturday, Sunday, or legal holiday, the period continues to the next day that isn't one.

Other rules differ. Some statutes and contracts count only business days, some define "business day" to exclude bank holidays, some measure from receipt rather than sending, and phrases like "within 30 days of" can be read more than one way. Calculators are useful for checking arithmetic, but the governing rule decides the answer. This article is general information, not legal advice; if a deadline matters, confirm it with the court, agency, or a qualified professional.

Frequently Asked Questions

How many days are there between two dates?

Subtract the earlier date from the later one. That gives the exclusive count, the days after the start through the end date. Add one if both the first and last days should count. For example, November 2 to December 31, 2026 is 59 days exclusive or 60 inclusive.

Do you count the first day when counting days?

Usually not. Ordinary date subtraction and most legal rules, such as Federal Rule of Civil Procedure 6(a), exclude the starting day. Count it only when the question is how many days something lasted and both ends were included, like an event that runs Monday through Friday.

How do I count business days between two dates?

Count the weekdays (whole weeks times five, plus the weekdays in any leftover days), then subtract the holidays that fall on weekdays in the range. For U.S. federal holidays, use the observed date: Friday for a Saturday holiday and Monday for a Sunday holiday.

Why do different date calculators give different answers?

The usual reasons are inclusive versus exclusive counting, different conventions for months near month ends, different holiday calendars, and, in poorly written tools, daylight saving time errors from dividing clock hours by 24.

How many days are in a year?

A common year has 365 days and a leap year has 366. Leap years are divisible by 4, except century years, which must be divisible by 400. The next leap day is February 29, 2028.