Start-Date-Inclusive Day Counter
Count the start date and exclude the end date.
How the Start-Date-Inclusive Day Counter Works
The Start-Date-Inclusive Day Counter counts the start date as day 1 and stops before the end date. The result equals the standard date difference, framed as day 1 through the day before the end date.
Set the start date
Enter the date that counts as day 1, such as a check-in date.
Set the end date
Enter the date that ends the period without being counted, such as a check-out date.
Read the counted days
The result counts the start date and every day after it, up to the day before the end date.
Match the billing rule
Use the result directly for nightly rates, daily interest and rent periods that end on a move-out day.
How the Count Is Calculated
The Start-Date-Inclusive formula counts the half-open interval [Start date, End date).
Days = End date − Start date (interval [Start, End))- [Start
- Square bracket: the start date is inside the count.
- End)
- Round bracket: the end date is outside the count.
- Days
- Number of counted days, equal to the standard difference.
Example: A guest checks in on 15 March 2026 and checks out on 10 August 2026. The stay covers 148 counted days (nights), from 15 March through 9 August.
Worked Examples
The table lists the first and last counted day for sample start-inclusive ranges.
| Start date | End date | First counted day | Last counted day | Days |
|---|---|---|---|---|
| 1 Mar 2026 | 5 Mar 2026 | 1 Mar | 4 Mar | 4 |
| 1 Jun 2026 | 1 Jul 2026 | 1 Jun | 30 Jun | 30 |
| 15 Mar 2026 | 10 Aug 2026 | 15 Mar | 9 Aug | 148 |
| 1 Jan 2026 | 1 Jan 2027 | 1 Jan 2026 | 31 Dec 2026 | 365 |
| 1 Jan 2024 | 1 Jan 2025 | 1 Jan 2024 | 31 Dec 2024 | 366 |
What the Tool Measures
A Start-Date-Inclusive Day Counter is a day counter that includes the first date and excludes the last date of a range. Mathematicians write the range as a half-open interval: [start, end).
Hotels, banks and landlords use start-inclusive counting. A hotel charges for the night of the check-in date and not for the check-out date. A bank charges interest from the disbursement date and stops on the repayment date.
Back-to-back start-inclusive ranges never overlap and never leave gaps. 1 January to 1 February and 1 February to 1 March share the boundary date without double-counting it.
When to Use This Tool
There are 5 main uses of the Start-Date-Inclusive Day Counter, including hotel stays and interest accrual.
Hotel and rental nights
Hosts count billable nights from check-in date to check-out date.
Interest accrual
Banks count interest days from the value date up to, but not including, the payment date.
Monthly rent periods
Landlords split rent into periods that start on the 1st and end before the next 1st.
Software date ranges
Developers store ranges as [start, end) so adjacent ranges join cleanly in databases.
Subscription cycles
Billing systems count service days from the renewal date to the next renewal date.