Dates & Time Guides

Counting Days Between Dates: Leap Years, Business Days and Off-by-One Errors

Published · 3 min read · By The Samsung Calculator editorial team

Skip to the answer: open the Date Calculator and enter your own numbers.

Why two date calculators can disagree by a day, when to count inclusively, how leap years and month-end arithmetic behave, and how business-day counting handles weekends.

The short answer is that add or subtract days, weeks, months and years from a date, or measure the gap between two dates. Everything below explains why, and where that answer stops being true.

Why it works this way

Understanding the mechanism matters more than memorising a result. Once you can see which quantity drives the outcome, you can sanity-check any number a tool hands you — including ours — and spot when an input is wrong before the answer misleads you.

A worked example

Open the Date Calculator with its default values, then change a single input and note the effect. Add or subtract days, weeks, months and years from a date, or measure the gap between two dates.

Common mistakes

Three mistakes account for most wrong answers here: mixing units without converting, applying a rate for the wrong period (annual where monthly was needed, or the reverse), and rounding partway through instead of at the end. Each one is easy to make and easy to avoid once you are watching for it.

  • how to calculate date difference in excel

Try it yourself

Work through the example with your own figures in the calculator below. Change one input at a time and watch which direction the result moves — that single habit builds more intuition than reading another explanation.

Run your own numbers

Add or subtract days, weeks, months and years from a date, or measure the gap between two dates.

Open the Date Calculator

About this article

Written and reviewed by The Samsung Calculator editorial team. Every calculator is written against a published formula, reviewed against at least one independent reference implementation, and dated when it changes. Last updated July 5, 2026. Spotted an error? Tell us.

More in Dates & Time Guides