Calcylator
Dates

Adding and subtracting days:
due dates, deadlines and leap years

Deadlines, notice periods and due dates all reduce to the same step: count N days forward or back from a start date and land on the right square of the calendar.

Calcylator Editorial Team

Updated · 6 min read

What it means to add days to a date

Adding days to a date is simple to describe and surprisingly easy to get wrong in your head. You move forward through the calendar one day at a time, passing through months of different lengths, and you stop after N steps. Because months have 28, 29, 30 or 31 days, the same N produces a different calendar date depending on where you start.

The question matters for real deadlines: a 30-day notice period, a 14-day return window, a 90-day warranty claim, an invoice due in 45 days. Each has a start event and a count, and the answer is a specific date that someone may hold you to.

The first decision is whether the start date counts. In the usual arithmetic convention, the start date is day 0, so 1 January plus 1 day is 2 January. Some contracts and rules count the start day as day 1, which gives an earlier end date, so read how the rule is worded before relying on any tool.

Computers store dates as a running count of days from a fixed origin, which is why date functions rarely get this wrong. Humans, working from memory of the calendar, are the ones who slip, especially near the end of February and across year boundaries.

The rule: start date plus N, with month lengths and leap years

Target date =start date + N days (start date is day 0)
start date:
the day the clock starts
N:
number of calendar days to add; subtract by using a negative number

In practice you carry across month boundaries. Add N to the day of the month; if the total passes the month's length, subtract that length, move to the next month, and repeat. Month lengths are 31 days for January, March, May, July, August, October and December, 30 for April, June, September and November, and 28 or 29 for February.

Leap year test =divisible by 4, except century years unless divisible by 400
2028:
divisible by 4, not a century: leap year
2100:
century, not divisible by 400: not a leap year
2000:
divisible by 400: leap year

Weeks give a shortcut for the weekday. Because 7 divides evenly, adding 7, 14, 28 or 91 days keeps the same weekday. Adding 90 days is 12 weeks plus 6 days, so the weekday moves forward by six, which is the same as moving back by one.

Worked example: the same 90 days, different answers

Count 90 days from 1 December in three consecutive years. December has 31 days, January has 31, and February has 28 or 29. The result depends on whether February of the following year is a leap February.

Ninety days from 1 December
Start dateDays addedFebruary lengthResult
1 December 20269028 (2027)1 March 2027
1 December 20279029 (2028)29 February 2028
1 December 20289028 (2029)1 March 2029
  • Start date

    1 December 2027

  • Days to add

    90

  • Path

    30 days left in December → 31 in January → 29 in February

Result

29 February 2028

1 December plus 30 days is 31 December; plus 31 more is 31 January; plus 29 more is 29 February, for 90 in total. The same count in 2028 reaches 1 March 2029 because February has 28 days.

A calculator or script that follows the calendar rules does this correctly. A mental shortcut of treating every month as 30 days would put the three answers on different dates and would be wrong for each of them.

Due dates and working backwards

Subtracting days uses the same logic in reverse. To find the start date for a 45-day deadline that falls on a known date, count backwards. Forty-five days before 11 October 2026 is 27 August 2026, a Thursday.

A common use of 280 days is a pregnancy due date estimated from the first day of the last menstrual period. Adding 280 days (40 weeks) to a start of 15 January 2026 gives 22 October 2026, a Thursday. This is a rule-of-thumb estimate, not a diagnosis: a doctor can refine the date from a scan and from the individual's cycle.

The traditional hand method for the same estimate adds 7 days to the start date and then subtracts 3 months. For 15 January that is 22 January and then 22 October of the same year. The two methods agree because 280 days is about 9 months and 7 days.

Keeping the weekday in view

  • Add 7 days and the weekday stays the same, so 11 October 2026, a Sunday, plus 14 is another Sunday.
  • Add 30 days and the weekday moves forward 2 (30 = 28 + 2).
  • Add 365 days and the weekday moves forward 1; add 366 days, as you would across a 29 February to land on the same date, and it moves forward 2.
  • Business-day counts exclude weekends and public holidays, so they cannot be done by simple addition.

This last point matters. A calendar-day count and a working-day count give different answers, and holidays differ by state and country. If the deadline is stated in working days, use a tool that handles weekends and holiday lists, or count them by hand from a calendar.

Mistakes that cost a day

Calendar arithmetic goes wrong in a few predictable places. Knowing them is faster than rechecking every answer.

  • Counting the start date as day 1 when the rule treats it as day 0.
  • Treating one month as 30 days. 31 January 2027 plus 30 days is 2 March 2027, while plus one calendar month is 28 February 2027, the last day of that month.
  • Missing a leap day: 365 days from 11 October 2027 is 10 October 2028, not 11 October, because 29 February 2028 lies in between.
  • Mixing up day-first and month-first date formats when typing a date, so 03/04 means two different dates.
  • Assuming a deadline that ends on a weekend or holiday moves to the next working day. Some rules do this and some do not.

For legal, tax or contractual deadlines, the wording of the document or the statute controls, and a date calculator only gives the arithmetic. If a lot depends on the answer, check with the issuing body or a professional.

Common questions

How do I add 90 days to a date?

Add 90 to the day count and carry across the calendar months, remembering February's length. From 11 October 2026, 90 days ahead is 9 January 2027. Because 90 is 12 weeks and 6 days, the weekday also moves forward six days.

Is the start date counted when adding days?

In standard date arithmetic the start date is day 0, so 1 January plus 5 days is 6 January. Some contracts count the start date as day 1, which ends a day earlier. Read the wording of your rule.

What is 280 days from a date?

It is exactly 40 weeks. From 15 January 2026, 280 days ahead is 22 October 2026. Doctors use this rule of thumb for due dates from the last period, but scans and individual cycles can adjust the date.

How does a leap year affect adding days?

A leap year adds 29 February, so any span that crosses it ends one calendar day later on the date than a normal year would. 365 days from 11 October 2027 is 10 October 2028, not 11 October.

How do I subtract days from a date?

Count backwards through the months, using each month's length, or add a negative number. 45 days before 11 October 2026 is 27 August 2026. Check whether a rule uses calendar days or working days.

Was this guide helpful?

Continue reading

View all blogs