Everyday Life

Date Calculator

Settings
Reset
Share
Save
Embed
Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.


Use as default values for the embed calculator what is currently in input fields of the calculator on the page.


Input border focus color, switchbox checked color, select item hover color etc.


Please agree to the Terms of Use.

Preview

Save calculator

Calculator Settings

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Please enter a value within the allowed range.

Share calculator

What is a date calculator?

A date calculator takes a starting date and shifts it forward or backward by a span measured in years, months, weeks, and days. It returns the resulting calendar date, along with the day of the week it falls on.

Counting dates by hand is surprisingly error-prone: months have different lengths, leap years add a day every four years, and weeks straddle month boundaries. This calculator does the bookkeeping for you, respecting the real calendar so that the answer is always a valid date.

It is useful any time you need to project a date into the future or trace one back into the past: a delivery window, a contract renewal, a return-by date, or simply “what date is 90 days from today?”.

How the calculator works

The calculator needs three things:

  1. A starting date — the date you are counting from.
  2. An operation — whether to add the span (move forward) or subtract it (move backward).
  3. A span — the number of years, months, weeks, and days to apply.

The units are applied largest first: years, then months, then weeks, then days. Working from the calendar means the result honors month lengths and leap years. For instance, adding one month to January 31 lands on the last day of February rather than overshooting into March.

When a shift lands on a date that does not exist — such as subtracting one year from February 29 in a leap year — the result is clamped back to the last valid day of that month (February 28).

Formula

A calendar shift is not a single fixed number of days, because months and years vary in length. We express it as a sequence of calendar-aware steps applied to the start date D0D_0:

Dresult=D0±(y years)±(m months)±(w weeks)±(d days)D_{\text{result}} = D_0 \pm (y \text{ years}) \pm (m \text{ months}) \pm (w \text{ weeks}) \pm (d \text{ days})

where:

  • yy = number of years
  • mm = number of months
  • ww = number of weeks
  • dd = number of days

The sign is positive when adding and negative when subtracting. Weeks and days are exact:

w weeks=7w daysw \text{ weeks} = 7w \text{ days}

Years and months, however, depend on the calendar position, which is why they are applied step by step rather than converted into a flat day count.

Examples

Example 1: Adding days

Start at 2024-01-01 and add 100 days.

Dresult=2024-01-01+100 daysD_{\text{result}} = 2024\text{-}01\text{-}01 + 100 \text{ days}

The result is 2024-04-10, a Wednesday.

Example 2: Adding weeks

Start at 2024-01-01 and add 3 weeks.

3 weeks=73=21 days3 \text{ weeks} = 7 \cdot 3 = 21 \text{ days}

The result is 2024-01-22, a Monday.

Example 3: Adding years

Start at 2024-06-15 and add 5 years.

Dresult=2024-06-15+5 yearsD_{\text{result}} = 2024\text{-}06\text{-}15 + 5 \text{ years}

The result is 2029-06-15, a Friday.

Example 4: Subtracting days

Start at 2024-04-10 and subtract 100 days.

Dresult=2024-04-10100 daysD_{\text{result}} = 2024\text{-}04\text{-}10 - 100 \text{ days}

The result is 2024-01-01, the same date used as the start in Example 1.

Practical uses

  • Deadlines and due dates — count forward a fixed number of days to find when something is due, or backward to know when to begin.
  • Subscriptions and contracts — add a term measured in months or years to a start date to find the renewal date.
  • Returns and warranties — add a 30-day return window or a multi-year warranty period to a purchase date.
  • Planning — project a milestone forward in weeks, or trace an anniversary back through the years.

FAQs

Does the calculator handle leap years?

Yes. Because the shift is applied against the real calendar, adding 2 days to 2024-02-28 (a leap year) lands on 2024-03-01, while in a non-leap year it would land on 2024-03-02.

What happens when a month is too short?

The result is clamped to the last valid day of the target month. Adding one month to January 31, 2024 gives February 29, 2024 (the last day of that leap-year February) instead of an invalid March date.

Can I subtract a span as well as add one?

Yes. Choose the Subtract operation and the span is applied backward, moving the result earlier in time.

How is this different from an add time calculator?

An add time calculator shifts a date and time by hours, minutes, and seconds. This calculator works at the level of whole calendar days, so it shifts by years, months, weeks, and days and reports the resulting date and weekday.

Report a bug

This field is required.