Figuro.net
Blog
← Back to blog

How Days-From/Until Calculators Work (And Why the Count Can Look Off by One)

Other · 4 min read · Published 2026

Counting days from or until a date looks like the simplest possible calculation — just subtract one date from another — but it's one of the most common places people get an answer that's off by exactly one day, for a very specific reason.

The basic calculation

At its core, a days-between calculation converts both dates to a day count (days since a fixed reference point) and subtracts:

Days between = Day count(end date) − Day count(start date)

A "days until" calculation is the same idea, just measured from today's date to a future date, and a "days from" calculation counts forward a number of days from a given start date to find the resulting date.

Why the count can look off by one: inclusive vs exclusive

The most common source of confusion is whether the start date, the end date, or both are included in the count. Counting from January 1 to January 5 gives 4 days if you count the gap between the dates (exclusive), but 5 days if you count every calendar day including both endpoints (inclusive) — both are "correct," they're just answering slightly different questions. This is exactly why a manually counted answer and a calculator's answer sometimes appear to disagree by exactly one day: they're using different counting conventions, not making an error.

Need to count days between two dates, or find a date a set number of days away?

Try the Date Calculator →

How leap years factor in

Any days-between calculation spanning February of a leap year needs to account for the extra day (February 29), which occurs in years divisible by 4 (except century years not divisible by 400 — so 2000 was a leap year, but 1900 was not). A date calculator handles this automatically by working from actual calendar day counts rather than assuming every year has exactly 365 days, which is what causes manual estimates over long date ranges to drift.

Business days vs. calendar days

A related but different calculation is counting business days rather than calendar days — excluding weekends (and sometimes holidays) from the count. A range that spans 10 calendar days might contain only 7 or 8 business days depending on which days of the week it falls on, which matters for things like estimating delivery windows or contract deadlines specified in business days.