Working with Dates: How to Count Days, Add Time, and Plan Ahead

Date math explained — counting days between two dates, calculating future deadlines, business day rules, and what makes date calculations more complicated than they look.

Why date math is harder than it looks

At first glance, calculating the number of days between two dates seems simple. But months have different lengths (28, 29, 30, or 31 days), years have 365 or 366 days, and different counting conventions exist for whether the start date, end date, or both count. Business day rules add weekends and holidays to the complexity. Software handles this accurately — manual mental math often does not.

Counting days between two dates

The standard approach is to count the total calendar days from one date to another, not including the start date but including the end date (or vice versa, depending on the use case). This is called an "inclusive" or "exclusive" count, and different contexts use different conventions.

For legal deadlines, "within 30 days" typically means 30 calendar days from the triggering event, not counting the event date itself. For billing cycles, the start date is usually included. When precision matters, confirm which convention applies.

Common situations where day counts come up:

  • Contract deadlines and notice periods ("give 60 days notice before the lease ends")
  • Return and warranty windows ("return within 30 days of purchase")
  • Medical and legal waiting periods
  • Project planning and milestone scheduling
  • Travel planning (days until departure, days of a trip)
  • Age calculations for forms and eligibility checks

Adding or subtracting time from a date

Adding days to a date is straightforward: start from the date and count forward. Adding months or years is trickier because of variable month lengths.

Adding one month to January 31 produces February 28 (or 29 in a leap year) — because February never has 31 days. Different software handles this differently: some roll over to March 1 or 2, others cap at the last day of the month. When adding months for contract dates, subscription renewals, or legal periods, confirm whether the convention is calendar months or a specific day count.

Examples where this matters in practice:

  • A monthly subscription starting January 31 — when does the next billing date fall?
  • A 6-month probationary period starting August 31 — does it end February 28 or March 2?
  • A 90-day return window starting December 1 — what is the last eligible return date?

The Date Calculator handles all of these cases: add or subtract any number of days, weeks, months, or years from a starting date and get the precise result.

Business days vs. calendar days

Business days (also called working days) exclude weekends — Saturdays and Sundays — and sometimes public holidays. Many financial, legal, and shipping contexts use business day counts rather than calendar days.

Common examples:

  • Bank transfers typically settle in 1–3 business days
  • Legal responses are often due within 5 or 10 business days of notice
  • Shipping estimates of "3–5 business days" exclude weekends
  • Employment background checks usually complete within 2–5 business days

The difference between business days and calendar days can be significant. Five business days starting on a Thursday spans two calendar weeks if a weekend is in between. The free Business Days Calculator counts working days between any two dates, automatically skipping weekends.

Leap years and why they matter

A leap year occurs every 4 years and adds February 29, making the year 366 days long. The rule: a year is a leap year if it is divisible by 4, except century years (1900, 2100) which must be divisible by 400 (so 2000 was a leap year but 1900 was not).

Leap years matter for precise day counts over multi-year spans and for any date calculation involving February 28–29. A contract spanning from February 1, 2023 to February 1, 2025 covers exactly 730 days in a non-leap-year period, but a period spanning February 2024 covers 731 days because 2024 is a leap year.

Countdown planning

Counting down to a future event — a deadline, vacation, exam, launch date, or anniversary — is one of the most common uses for date tools. The Days Until Calculator counts the days remaining to any future date. For recurring events or scheduling across time zones, the Days Between Dates calculator and Time Zone Converter handle the related calculations.