Date ± Calendar Units Calculator

Date ± Calendar Units Calculator

Growing AI Skill PRO

Enter Calculation

Formula

Result=JDN−1(JDN(Y,M,D)+skN)where{Y,M,D=Year,Month,DayN=Unitss=+1add,−1subtract(Operator)k=1day,7week(Unit Type)output shown as Date Format\begin{gathered} \text{Result} = \mathrm{JDN}^{-1}\!\left(\mathrm{JDN}(Y,M,D) + s\,k\,N\right) \\[1.5em] \text{where}\quad \left\{ \begin{aligned} Y,M,D &= \text{Year},\ \text{Month},\ \text{Day} \\ N &= \text{Units} \\ s &= +1\ \text{add},\ -1\ \text{subtract}\ \left(\text{Operator}\right) \\ k &= 1\ \text{day},\ 7\ \text{week}\ \left(\text{Unit Type}\right) \\ &\ \text{output shown as } \text{Date Format} \end{aligned} \right. \end{gathered}
Usage stats

Advertisement

Results

Monday June 15, 2026 plus 180 days is
Saturday December 12, 2026
12/12/2026 · 346th Day of 2026
Result date 12/12/2026
Result weekday Saturday
Result day of year 346th Day of 2026
Start date Monday June 15, 2026
Start day of year 166th Day of 2026

Report an error on this page

What this calculator does

The Date plus or minus Calendar Units Calculator adds or subtracts a chosen number of days, weeks, months, quarters, or years to or from any starting date. It returns the resulting calendar date in your preferred format, the weekday, and the day-of-year for both the start and result dates. It uses the proleptic Gregorian calendar, so it works the same everywhere with no national holiday or business-day rules.

How to use it

Enter the starting date (year, month, day), pick a Date Format (USA m/d/yyyy, Europe d-m-yyyy, or ISO yyyy-mm-dd) that controls how dates are displayed, choose the Operator (add or subtract), type the number of Units, and select the Unit Type. The number may be zero or negative.

The formula explained

Days and weeks use exact day counting: the date is turned into a Julian Day Number (JDN), the signed offset is added (weeks are multiplied by 7), and the JDN is converted back, automatically respecting 365- and 366-day years. The general relationship is $$\text{Result} = \text{Start Date} \;\pm\; n \times \text{Unit}$$ For days and weeks this becomes $$\text{JDN}_{result} = \text{JDN}_{start} + n_{days}$$ Months, quarters, and years step whole calendar months. The total months are computed, divided into a year and month, and the day is clamped to the last valid day of that month: $$D_{result} = \min\big(D_{start},\; \text{daysInMonth}(Y_{result}, M_{result})\big)$$ For example, January 31 minus one month becomes the last day of the previous month, not an overflow into the next one.

Advertisement
Timeline showing a start date with subtraction to the left and addition to the right using calendar units
Adding or subtracting calendar units moves the start date forward or backward along the timeline.

Worked example

Start 6/15/2026 (a Monday, the 166th day of 2026), add 180 days. The Julian Day Number is 2461577; adding 180 gives \(2461577 + 180 = 2461757\), which is December 12, 2026 - a Saturday and the 346th day of 2026. So the result reads "Saturday December 12, 2026 / 12/12/2026 / 346th Day of 2026".

Two calendars connected by an arrow showing the start date shifting to a result date in a later month
A worked example: shifting the start date by several units lands on a new calendar date and weekday.

Calendar Unit Conversion Table

The Unit Type selector changes what kind of step the calculator takes, not just the size of the step. Days and weeks are fixed-length conversions. Months, quarters and years instead advance the calendar month (and year) number and keep the day number, so the number of real days they cover depends on where in the calendar you start.

Unit (field value) Exact definition used Days covered by one step Day-clamping possible?
Day (days) Exactly 1 day on the (proleptic) Gregorian calendar: \(+1\) to the Julian Day Number 1 (fixed) No — never produces an invalid date
Week (weeks) 1 week = 7 days exactly, so \(N\) weeks = \(7N\) days 7 (fixed) No — result always falls on the same weekday as the start date
Month (months) 1 calendar month: month number \(+1\), day number unchanged (not a fixed day count) 28–31, depending on the months crossed Yes — e.g. 31 Jan + 1 month → 28 Feb
Quarter (quarters) 3 calendar months, i.e. \(N\) quarters = \(3N\) calendar-month steps 89–92 for an arbitrary start date; the four standard calendar quarters (Jan–Mar, Apr–Jun, Jul–Sep, Oct–Dec) are 90–92 days (91 in Q1 of a leap year) Yes — e.g. 31 Aug + 1 quarter → 30 Nov
Year (years) 12 calendar months, i.e. year number \(+1\), month and day unchanged 365, or 366 when the span contains a 29 February Yes — only for 29 February, which clamps to 28 February in a common year

Put differently: for days and weeks you can convert freely, since

$$N_{\text{days}} = 7 \times N_{\text{weeks}}$$

For months, quarters and years no such fixed factor exists. A "month" here is a real calendar month of 28, 29, 30 or 31 days — never an accounting-style fixed 30-day month — so 1 year is 12 calendar months rather than 360 or 365 days, and 1 quarter is 3 calendar months rather than 90 days. If you need an exact fixed-length offset, choose days or weeks.

How the Same Shift Differs by Unit and Start Date

All rows below use the Gregorian calendar and the ISO output format (yyyy-mm-dd). Day-of-year is counted from 1 on 1 January.

Start date Operator Units Unit type Result date Weekday Day-of-year Note
2026-01-31 Add 1 Months 2026-02-28 Saturday 59 Clamped: 31 February does not exist, so the day falls back to the last day of February (2026 is a common year)
2024-02-29 Add 1 Years 2025-02-28 Friday 59 Clamped: 2025 has no 29 February, so the leap day maps to 28 February
2026-08-31 Add 1 Quarters 2026-11-30 Monday 334 Clamped: 3 calendar months lands on "31 November", which rolls back to 30 November (a span of 91 days)
2026-03-01 Subtract 1 Days 2026-02-28 Saturday 59 2026 is not a leap year (2026 ÷ 4 leaves a remainder), so the day before 1 March is 28 February
2024-03-01 Subtract 1 Days 2024-02-29 Thursday 60 2024 is a leap year, so the identical shift lands on the leap day instead
2026-06-15 Add 8 Weeks 2026-08-10 Monday 222 Exact fixed count: \(8 \times 7 = 56\) days, and \(166 + 56 = 222\) in day-of-year terms; the weekday is unchanged (Monday → Monday)

Three lessons fall out of the table. First, the two 1-day subtractions from 1 March give different answers purely because of the leap-year rule, so a shift is never safe to "remember" from a previous year. Second, month, quarter and year steps can shorten the day number through clamping, and that loss is not undone by stepping back: 31 January + 1 month − 1 month returns 28 January, not 31 January. Third, only week (and day) steps preserve the weekday, which is why recurring schedules — payroll cycles, sprint cadences, follow-up appointments — are usually defined in weeks, while contractual and billing periods are defined in calendar months.

Advertisement

Key Terms Defined

  1. Julian Day Number (JDN) — a continuous, unbroken count of days used as the calculator's internal arithmetic, so that adding days never has to reason about month lengths. Its zero point is noon on 1 January 4713 BC in the Julian calendar, which is 24 November 4714 BC in the proleptic Gregorian calendar. Converting a date to JDN, adding or subtracting the offset, and converting back is what makes \(\mathrm{JDN}^{-1}(\mathrm{JDN}(Y,M,D) + s\,k\,N)\) exact.
  2. Proleptic Gregorian calendar — the Gregorian calendar's rules projected backwards before it was actually adopted (first introduced in October 1582, and only decades or centuries later in many countries). Historical dates from before local adoption were usually recorded in the Julian calendar, so a proleptic Gregorian result can differ from the date in a contemporary document.
  3. Day clamping — when a month, quarter or year step would produce a day number that the target month does not have, the result is pulled back to the last valid day of that month. 31 March + 1 month → 30 April; 29 February + 1 year → 28 February. Clamping only ever reduces the day number, and it is not reversible.
  4. Day-of-year — the ordinal position of the date within its year, from 1 on 1 January to 365 in a common year or 366 in a leap year. Useful for comparing how far into a year two dates sit, independently of month boundaries.
  5. Leap-year rule (Gregorian) — a year is a leap year if it is divisible by 4, except that century years must also be divisible by 400. So 2024 and 2000 are leap years; 2025, 2026 and 1900 are not. This gives an average year of 365.2425 days.
  6. Calendar month vs. fixed 30-day month — a calendar month is a real named month of 28, 29, 30 or 31 days, and a month step moves between the same day numbers in adjacent months. A fixed 30-day month (the "30/360" convention used in some bond and interest calculations) is an accounting simplification; this calculator does not use it.
  7. Quarter — a block of 3 consecutive calendar months. Selecting quarters is therefore identical to selecting months with three times the count, and it inherits the same clamping behaviour. Note that fiscal quarters in many organisations and jurisdictions do not begin in January, so a "quarter" here means a 3-month span from your start date, not a named fiscal quarter.
  8. Date-format codes — these control only how the result is displayed, never the arithmetic. usa renders m/d/yyyy (month first, the common United States order, e.g. 2/28/2026); eur renders d-m-yyyy (day first, widespread in Europe and much of the world, e.g. 28-2-2026); iso renders yyyy-mm-dd per ISO 8601, e.g. 2026-02-28. Because 3/4/2026 is ambiguous between the first two conventions, ISO 8601 is the safest choice when a date will be read internationally or sorted as text.

FAQ

Why does adding a month sometimes change the day? Because months have different lengths. Adding a month to January 31 lands on the last valid day of the next month (February 28 or 29) by clamping.

How are leap years handled? Day and week arithmetic counts real days, so leap days are crossed correctly. Adding whole years to February 29 lands on February 28 in non-leap target years.

Does it count business days? No - it works in pure calendar units and ignores weekends and holidays.

Last updated:

Most popular in Time and Date

View all Time and Date calculators