SOLOCALCULATOR.COM
Guide

When You Count the Days Between Two Dates, Do You Count Both?

Counting days between dates normally excludes the first day and includes the last, so 1 March to 5 March is 4 days. Inclusive counting adds exactly one day, and knowing which one a deadline means is the whole difference.

Counting the days between two dates normally excludes the first day and includes the last, so 1 March to 5 March is four days and not five; counting both ends instead is called inclusive counting, and it always adds exactly one day to the answer.

The two conventions, side by side

Exclusive counting is the default almost everywhere a computer is involved. It measures elapsed time: how many full days have passed from the first date to the second. Another way to picture it is nights. If you arrive on the 1st and leave on the 5th, you have slept four nights, and four is what the subtraction gives you.

Inclusive counting treats both dates as days you are counting, not as the boundaries of a gap. It answers a different question: how many calendar days does this period touch? A four-day stay occupies five dated squares on a calendar, and inclusive counting returns the five.

Neither one is wrong. They answer different questions, and almost every argument about day counts comes from two people answering different questions with the same number.

A worked example

Take 1 March and 5 March of the same year.

Counting exclusively, you count the 2nd, the 3rd, the 4th and the 5th. That is 4 days. Enter those two dates into the date calculator on this site and it returns 4 days, because it measures the gap rather than the squares.

Counting inclusively, you count the 1st, the 2nd, the 3rd, the 4th and the 5th. That is 5 days.

The relationship between the two never changes:

inclusive total = exclusive total + 1

So you never need two calculations. Work out the gap, then add one if the thing you are counting includes its own starting day.

Which one does a deadline mean?

This is where the answer actually matters, and the honest answer is that it depends on the wording rather than on any universal rule.

Wording such as "within 14 days of" or "14 days after" usually points at exclusive counting: the clock starts the day after the triggering event. Wording such as "a 14-day period beginning on" or "the eighth day" usually points at inclusive counting, because the first day is named as part of the period. Traditions that count a ritual or observance on a numbered day — the eighth day after a birth, for example — are almost always inclusive, which is why that eighth day falls seven days after the birth date rather than eight.

Hotel bookings, car hire and anything priced per night are exclusive by nature. Trial periods, notice periods and filing deadlines vary by contract and by country, so where money or a legal right turns on the answer it is worth reading the clause rather than assuming. If a document does not say, the safe move is to work to the earlier of the two readings.

Leap years and uneven months change nothing

The rule survives the calendar's irregularities, because a date calculator counts real days rather than assuming a month length. From 28 February 2028 to 1 March 2028 is 2 days, not 1, because 2028 is a leap year and 29 February sits between them. The same two dates in 2027 would be 1 day apart.

This is also why counting in your head across a month boundary goes wrong so often. The months have 28, 29, 30 or 31 days, and the mental shortcut of "about four weeks" quietly loses or gains days.

Where the off-by-one creeps in

Two phrasings cause most of the trouble.

"Ten days from today" is ambiguous on its own. Read exclusively it lands on the tenth day after today; read inclusively it lands on the ninth day after today, because today is day one.

"How many days until" a future date is exclusive in nearly every countdown you will meet, including the one on this site. A countdown showing 30 days means 30 full days remain, with today already partly spent.

How to check an answer quickly

The fastest check is to run the pair through a tool that counts the real calendar. The date calculator gives the gap between two dates and will also add or subtract a number of days from a date. If weekends and working days matter, the business days calculator counts only weekdays. For a span measured in years, months and days rather than a flat day count, the age calculator breaks it down.

In short

Days between two dates are counted exclusively by default, so the first date is not counted and the last one is. Inclusive counting adds one. Decide which question you are answering before you decide the number is wrong.

Days Between Two Dates: Do You Count Both?