A day count can mean two different things depending on whether the final date is included. The add-days calculator makes that choice explicit with one Include end date option, and the choice changes the answer for every pair of dates you enter.
By default, the add-days calculator does not count the end date. It includes the start date and counts the days you live through to reach the last date, so January 1 to December 31, 2024 gives 365 days even though 2024 is a leap year: December 31 would be the 366th day. Tick Include end date and the same range returns 366 days. Turning the option on also changes the working-day and custom-weekday results.
What is the default rule for the last day?
The Include end date option is disabled by default. In the calculator's equation, its term is 0 when the box is unchecked and 1 when it is ticked:
With the default 0, the answer to "how many days from January 1 to December 31?" is 365: the start date counts, the end date does not. The source puts it plainly — December 31 would be the 366th day of 2024. The tick box simply adds that day to the span.
Which results change when the last day is counted?
Ticking the box does not only add one to Time between. The source notes that enabling this feature affects all other results in the calculator, so set it before reading any output. For the 2024 example, the direct effect is:
| Option state | include end date value | Time between, Jan 1–Dec 31, 2024 |
|---|---|---|
| Unchecked (default) | 0 | 365 days |
| Checked | 1 | 366 days |
Working time and custom time are recalculated under the same setting, even though their own rules are separate.
Worked example: the last day of 2024
Enter January 1, 2024 in From and December 31, 2024 in To. With the default setting, time between shows 365 days. Tick Include end date and the field shows 366 days. The one-day difference is exactly the final date; 2024 being a leap year is why that final date is numbered 366.
FAQ
Is Include end date turned on by default?
No. The option is disabled by default, which is why the calculator's January 1 to December 31, 2024 example reports 365 rather than 366 days.
Does the start date count?
Yes. The Time between field is described as including the start date while leaving out the end date unless the checkbox is ticked.
Why does a leap year show only 365 days in this example?
Because the end date is excluded. December 31 would be the 366th day of 2024, so counting the days needed to arrive on it gives 365; ticking the box counts the day itself.
Does the checkbox affect the other outputs?
Yes. The source states that enabling Include end date affects all other results in the calculator, not just the plain day count.
References
- Add Days Calculator source documentation on the default end-date rule and its worked 2024 example.
- Calendar arithmetic references on leap years and the numbering of the final day of a year.
- General arithmetic references on inclusive and exclusive date spans.