How to Calculate Days Between Two Dates
The subtraction, the off-by-one, and how weekdays-only differ.
Subtract the earlier date from the later date — then decide if the endpoints count.
Days between dates sounds like simple subtraction, but "how many days from Monday to Friday" has at least three valid answers depending on whether you count the endpoints.
Part of: Everyday Calculators
Quick answer
Subtract the earlier date from the later date — then decide if the endpoints count.
Key points
- ▸ Exclusive count: later_date − earlier_date. Monday to Friday = 4 days.
- ▸ Inclusive count: later_date − earlier_date + 1. Monday to Friday = 5 days.
- ▸ Working days: exclude Saturday/Sunday (and optionally public holidays).
- ▸ For contracts, "X days from Y" usually means exclusive — the signing day is day 0.
- ▸ Leap years are handled automatically if you use date arithmetic, not day counting.
Examples
- Project timelineStart 2026-01-10, end 2026-01-20. Exclusive: 10 days. Inclusive: 11 days. Use exclusive for elapsed days.
- Working days2026-01-10 (Sat) to 2026-01-20 (Tue). 10 total days, 7 working days (Mon-Fri × 1.4 weeks).
- Contract deadline"30 days from signing" means 30 days after signing day — exclusive. Sign Jan 1, deadline is Jan 31.
When to use which tool
- Date Difference CalculatorMain tool — pick two dates, get days / weeks / months / years.Calculate the difference between two dates in years, months, weeks, days, hours, minutes, and seconds.
- Age On A Specific DateWhen the two dates are a birth date and a target date.Calculate how old you will be — or were — on any target date. Works for past and future dates.
- Hours CalculatorFor sub-day precision — hours and minutes between timestamps.Calculate hours worked between two times, subtract an unpaid break, and optionally estimate pay.
Related
- Date Difference CalculatorCalculate the difference between two dates in years, months, weeks, days, hours, minutes, and seconds.
- Age On A Specific DateCalculate how old you will be — or were — on any target date. Works for past and future dates.
- Hours CalculatorCalculate hours worked between two times, subtract an unpaid break, and optionally estimate pay.
- How to Calculate Age on a DateBirthday, target date, answer — with the leap-year and timezone traps.
Frequently asked questions
› Inclusive or exclusive — which should I use?
Most everyday questions want exclusive ("how many nights at a hotel"). Billing, rental, and contract terms usually want inclusive — read the specific agreement.
› How do I count working days? How-to
Count total days, then subtract (days ÷ 7) × 2 for weekends, and subtract any public holidays that fall in the range. Tools automate this.
› How accurate are online calculators and converters? Trust & accuracy
Online calculators are only as accurate as the numbers, units, assumptions, and rounding choices you enter. Recheck the input values first, then compare the formula against your real situation. For legal, tax, medical, financial, or professional decisions, treat the result as a planning estimate, not advice.
› What inputs should I double-check first? Troubleshooting
Double-check units, dates, percentages, decimal placement, and whether the input is before-tax, after-tax, gross, net, original, or final. Most calculator mistakes come from feeding the right formula the wrong base. If the result feels off, rebuild it from a simple worked example.
› Why do two calculators sometimes give different answers? Comparison
Two calculators may round at different steps, use different defaults, or interpret the same label differently. Percent, time, finance, and unit tools are especially sensitive to basis and rounding rules. Compare the formula, not just the final number, before deciding which result to trust.