How to Count Days Between Dates and Until a Deadline
Learn how to count days between two dates, run a countdown to a deadline, and add days to a date, including start/end day rules and leap years.
Whether you are counting down to a trip, checking how long until a bill is due, or working out a deadline that is “30 days from receipt,” you need to know how many days sit between two dates. Counting on a wall calendar works for short spans, but it gets error-prone once months of different lengths, leap years, and the question of “does today count?” enter the picture.
This guide explains the three common kinds of date math (countdowns, adding days, and measuring the gap between two dates), the rules that trip people up, and how to get a quick, reliable answer with a free calculator that runs entirely in your browser.
The three kinds of date counting
Most everyday date questions fall into one of three types. Knowing which one you are asking makes the answer much easier to check.
1. Countdown to a date (D-day). “How many days until my exam?” You start from today and count forward to a target date. The result shrinks by one each day. Some people call this a D-day count, where the target is “D” and the days before it are written as D-30, D-10, and so on.
2. Adding days to a date. “What date is 90 days after I signed the contract?” You start from a known date, add a number of days, and get a new date. This is common for return windows, trial periods, and notice periods.
3. Days between two dates. “How many days were there between my start date and my last day?” You have two fixed dates and want the length of the gap. This comes up for travel, project timelines, and tracking how long something has been going on.
| Question type | What you know | What you want | Typical example |
|---|---|---|---|
| Countdown | Today + target date | Number of days left | Days until a wedding or exam |
| Add days | Start date + number of days | The resulting date | Deadline 30 days after an invoice |
| Days between | Two dates | Length of the gap | Length of a trip or a contract |
| Age / elapsed time | Birth date + today | Years, months, days | How old someone is today |
Should you include the start day and the end day?
This is the single most common source of “off by one” mistakes. There are two ways to count:
- Exclusive counting (the gap): You count how many day boundaries you cross. From Monday to Friday is 4 days. This is what most calculators and spreadsheets give you, because it is simply “end date minus start date.”
- Inclusive counting (every day touched): You count every calendar day, including both the first and the last. Monday through Friday is 5 days. This is how people usually count a hotel stay’s calendar days, a festival’s length, or the number of days someone attended an event.
Neither is wrong; they answer different questions. A simple rule: if the question is “how long between,” use the gap. If it is “how many days does this cover,” add one to the gap.
For deadlines, read the wording carefully. “Within 14 days” might start counting the day after an event, or on the day itself, depending on who wrote the rule. When it matters (legal notices, refunds, official forms), check the exact definition in the document rather than guessing.
Calendar days vs. business days
A calendar day is any day on the calendar, including weekends and holidays. A business day (or working day) usually means Monday to Friday, minus public holidays.
The Deftivo calculator counts calendar days only. It does not skip weekends or holidays, so it will not tell you “10 business days from now.” If your deadline is stated in business days, you can use the calendar-day result as a starting point and then subtract weekends and any holidays that apply where you live. Because holidays differ by country, region, and even employer, it is worth checking a local calendar for those.
Leap years and month lengths
Months have 28, 29, 30, or 31 days, which is why “one month from January 31” is ambiguous and why counting by hand often goes wrong. Leap years add a 29th day to February. In the standard calendar, a year is a leap year if it is divisible by 4, except years divisible by 100, unless they are also divisible by 400. So 2000 was a leap year, while 1900 was not.
A good date calculator handles all of this automatically. If a span you are counting crosses the end of February in a leap year, the result will include that extra day. This is one of the main reasons to use a calculator instead of multiplying “months × 30.”
How to count days with Deftivo
The Deftivo D-day calculator works in your browser, so the dates you type stay on your device. Nothing is sent to a server, and there is no sign-up.
- Open the D-day calculator in any modern browser, on a computer or phone. The page has three panels: “Days until (countdown)”, “Add or subtract days” and “Days between two dates.”
- For a countdown, pick the Target date. The “From (today)” date is already set to today, and the result appears as D-80 (days to go) or D+100 (days ago).
- To add days, pick a Start date and type a number in “Days to add (use - to subtract).” A negative number goes back in time. If you are counting an anniversary where the first day is day 1, tick “Count the start date as day 1 (anniversaries).”
- For the gap between two dates, pick a Start date and an End date. Tick “Include both the start and end date” if you want an inclusive count.
- Read the result, which also shows the weekday and a weeks-and-days breakdown. All counts are calendar days, so subtract weekends and holidays yourself if you need business days.
If your question is really about age or elapsed years, for example “how old will I be on that date?” or “how long ago was this in years, months, and days?”, the age calculator is a better fit, because it breaks the answer into years, months, and days rather than one large number.
Tips and common pitfalls
- Write down which convention you used. If you share a count with someone, say “14 days, not counting today” or “14 days including both ends.” It prevents confusion later.
- Watch time zones for deadlines. A deadline of “midnight on the 15th” may fall on a different local day for someone in another country. A day counter works with dates, not hours, so confirm the exact time separately.
- Don’t convert months to days by hand. “Three months” is not always 90 days. Use actual dates whenever you can.
- Double-check dates around the year boundary. Counting from December into January is a common place for slips, especially when typing the year.
- Check date format. Some regions write day/month/year and others month/day/year. Make sure the date you entered is the one you meant, especially for days 1 to 12.
- For official deadlines, the document wins. A calculator gives you accurate arithmetic, but only the rule itself tells you whether a deadline counts weekends, starts the next day, or ends at a specific hour.
FAQ
Does the calculator count the start day?
By default, “Days between two dates” gives you the gap, which is what you get by subtracting one date from the other. Tick “Include both the start and end date” to count both the first and last day, which adds one. That inclusive number is often what people mean when they ask “how many days does this cover?”
Can it count only business days?
No. The tool counts calendar days, including weekends and holidays. For a business-day estimate, take the calendar-day result and subtract the weekends and any public holidays that apply to you.
Are leap years handled automatically?
Yes. When a span includes February 29 in a leap year, that day is part of the count. You do not need to adjust anything yourself.
Is my information uploaded anywhere?
No. The calculation runs in your browser, so the dates you enter stay on your device. You can close the page at any time, and nothing is stored on a server.