Count the days from one date to another, exclusive or inclusive.
Enter values above — results appear automatically, or press Calculate. The formula used is explained below.
Counting days hides a fork in the road. Elapsed time from March 1 to March 10 is nine days — you cross nine midnights. But a trip departing March 1 and returning March 10 lasts ten calendar days. Both are right; they answer different questions.
Deadlines, interest and age math use elapsed counting. Hotel stays, rental periods and vacation requests use inclusive counting. Choosing deliberately prevents off-by-one arguments later.
Count the days from one date to another, exclusive or inclusive. Formula: elapsed days = (end − start) ÷ 86,400,000 ms. Example: March 1 → March 10: nine elapsed days, but ten days counted inclusively — the classic booking-vs-deadline distinction.
Counting days hides a fork in the road. Elapsed time from March 1 to March 10 is nine days — you cross nine midnights. But a trip departing March 1 and returning March 10 lasts ten calendar days. Both are right; they answer different questions.
Deadlines, interest and age math use elapsed counting. Hotel stays, rental periods and vacation requests use inclusive counting. Choosing deliberately prevents off-by-one arguments later.
March 1 → March 10: nine elapsed days, but ten days counted inclusively — the classic booking-vs-deadline distinction.
Formulas are standard public references (see our methodology). External standards are cited in the text where they apply.
New tool — content being expanded · Report an error