Date Math: Working Out Durations, Deadlines and Countdowns

The common mistakes people make counting days between dates by hand, and how to get duration calculations right.

Counting days between two dates by hand feels straightforward — until you hit a month boundary, a leap year, or have to decide whether to count the start date, the end date, both, or neither.

The inclusive vs exclusive counting problem

"From Monday to Friday" can mean 4 days (exclusive of the start) or 5 days (inclusive of both endpoints), depending entirely on context — payroll periods, contract terms, and rental agreements often specify this explicitly precisely because the ambiguity causes real disputes. Always check which convention actually applies before treating a date-math result as final.

Why months don't make manual counting easy

Months have different numbers of days (28 to 31), which means "add one month" isn't a fixed number of days the way "add one week" is — this is a common source of subtle errors when people try to calculate deadlines or durations by simple day-counting instead of proper calendar-aware date math.

Working backward: figuring out a deadline

"90 days from today" needs the same calendar-aware handling as counting between two known dates — it has to correctly cross month and year boundaries, including leap years, rather than just adding to a day-of-month number and hoping it doesn't overflow past the end of a month.

Use proper date arithmetic

A date calculator handles both directions correctly — the exact duration between two dates, and a target date some number of days before or after a given date — with calendar-correct month and leap-year handling built in.

The bottom line

The inclusive/exclusive question matters more than the arithmetic itself for anything with legal or financial consequences — get that convention clear first, then let a proper calculator handle the calendar mechanics.

Try it yourself

Put this into practice with our date calculator.