The Mechanics of Time: How to Add and Subtract Dates
Learn how to calculate exactly how many days are between two dates, and how to add 90 days to a contract deadline without getting confused by calendar irregularities.

Instantly find the exact duration between any two dates using our Date Calculator, or read on to understand the complex rules of calendar mathematics.
In business and law, precise date calculation is critical. If a contract states a payment is due "90 days from execution," paying on the 91st day could result in thousands of dollars in penalties. If a warranty lasts "exactly two years," knowing the precise expiration date is essential.
Because the calendar is irregular, doing this math in your head is notoriously error-prone.
Every difficulty in this topic traces back to one fact: months refuse to be the same length. Master the three skills below — adding days, subtracting days, and measuring the gap between two dates — and the irregularity stops mattering.
Adding Days to a Date
If you sign a contract on March 15th that says you have exactly 90 days to complete a project, what is the deadline? You cannot simply add 3 months, because March has 31 days, April has 30, and May has 31.
Manual Calculation Strategy:
- Subtract the starting day (15) from the total days in the starting month (31 in March).
31 - 15 = 16 days left in March. - Subtract those 16 days from your 90-day total.
90 - 16 = 74 days remaining. - Subtract the entire next month (April has 30 days).
74 - 30 = 44 days remaining. - Subtract the entire next month (May has 31 days).
44 - 31 = 13 days remaining. - You have 13 days left, which fall into the next month (June). Your deadline is June 13th.
The strategy generalizes into one sentence: burn through the rest of the current month first, then consume whole months, then land in the final partial month. Every date addition you ever do follows that shape.
Worked Example: A 45-Day Deadline
A permit approved on October 1st must be used within 45 days. October has 31 days, so 30 days remain after October 1st (31 − 1 = 30), bringing you to October 31st.
Subtract: 45 − 30 = 15 days still to run. Those 15 days land in November, so the deadline is November 15th.
Notice that the starting day itself is not counted. "45 days from October 1st" treats October 2nd as day 1. This convention — exclude the start, include the end — underlies almost all deadline law.
Why "Add 3 Months" Is Not the Same as 90 Days
Our contract example exposes the trap. March 15th plus three calendar months is June 15th, but March 15th plus 90 days is June 13th — two full days earlier.
Months vary between 28 and 31 days, so any fixed count of months covers a variable count of days. Three months can mean 89, 90, 91, or 92 days depending on which months are involved.
Whenever a document gives a deadline in days, honor the days. Whenever it gives months, honor the months. Substituting one for the other is how careful people miss deadlines by 48 hours.
Enter your own numbers and see the result instantly — free, no signup.
Subtracting Days From a Date
Subtraction runs the same machinery in reverse: consume the days back to the start of the current month, then whole months backwards, then land.
Example: What date falls exactly 30 days before March 15th (in a non-leap year)?
- Step back to March 1st: that uses 14 days.
30 - 14 = 16 days remaining. - One more day back lands on February 28th, leaving 15 days to go.
- Count back those 15 days through February: February 28th minus 15 days lands on February 13th.
Check by reversing: February 13th plus 30 days — 15 days to February 28th, then 15 days into March — returns exactly to March 15th. Always reverse-check a subtraction; it costs ten seconds and catches nearly every slip.
Refunds, notice periods, and "30 days prior written notice" clauses all run on this backward calculation, so it deserves the same care as the forward one.
Finding the Difference Between Two Dates
How many total days are there between January 1st and December 31st? The answer is 364 days, not 365, because standard date math calculates the duration between the dates and does not include the end date itself.
If you want to include both the start and end dates (often called "inclusive" counting), you must add 1 day to the final mathematical result.
Worked example: How many days separate January 15th and March 15th in a non-leap year? Count in two hops:
- January 15th to February 15th: 31 days (the length of the January-to-February span)
- February 15th to March 15th: 28 days
- Total: 59 days
Month-hopping is the fastest reliable manual method: jump between the same day-of-month, adding each month's true length, then adjust for any leftover days at the end. For arbitrary pairs, our Date Difference Calculator applies the same logic instantly.
The Leap Year Problem
The biggest complication in date math is the leap year. Every four years, February gains an extra day (February 29th) to keep our calendar aligned with the Earth's orbit around the sun.
The Rule of Leap Years: A year is a leap year if it is evenly divisible by 4. Exception: If the year is divisible by 100, it is NOT a leap year (e.g., 1900 was not a leap year).
Exception to the Exception: If the year is divisible by 400, it IS a leap year (e.g., 2000 was a leap year).
When calculating deadlines that cross over February in a leap year (like 2024 or 2028), failing to account for the 29th day is the most common reason people miss 30, 60, and 90-day deadlines.
The century rules surprise people. The year 2100 will not be a leap year even though it divides by 4, while 2000 was one because it divides by 400. Our Leap Year Calculator settles any year instantly.
Leap Year Worked Example
A project starts January 30th, 2028 — a leap year — with a 45-day deadline. One day remains in January (the 31st), leaving 44 days.
February 2028 has 29 days, so consume them all: 44 − 29 = 15 days left. The deadline is therefore March 15th, 2028.
Run the identical problem in 2027 and February only offers 28 days, pushing the deadline to March 16th. One extra day in February pulls every later deadline a day closer.
Business Days vs. Calendar Days
Contracts, courts, and shipping carriers often count only business days: Monday through Friday, excluding public holidays. The difference from calendar days is dramatic.
Ninety business days span eighteen working weeks, which is about 126 calendar days — over four months, not three. Anyone who reads "90 business days" as "90 days" underestimates the timeline by five weeks.
Our Business Days Calculator handles the weekend skipping automatically. Holidays still need manual care, because the official holiday list depends on the country, state, and even the specific court or bank involved.
A useful rule of thumb when holidays are ignored: multiply business days by 1.4 to estimate calendar days. Ten business days is roughly fourteen calendar days — two full weeks.
How Computers Count Dates
Software sidesteps the irregular calendar with a beautifully simple trick: it converts every date into a single serial number — the count of days since a fixed epoch — and does arithmetic on the numbers.
Unix-based systems count seconds since January 1st, 1970. Spreadsheets count days from their own starting dates. Either way, "add 90 days" becomes ordinary addition on one integer.
Conversion back to a calendar date is where February and leap years get handled, once, by tested code. This is why calculators never make the errors humans make: they never count months at all.
Age Calculation: A Special Case of Date Math
Age is a date difference with one extra rule: you only gain a year when your birthday arrives. Someone born June 10th, 2000 turns 26 on June 10th, 2026 — not a day sooner.
So an age calculation first subtracts the years, then checks whether this year's birthday has passed. On November 7th, 2026, that person is 26; on May 1st, 2026, they were still 25.
The same borrow-a-year logic applies to anniversaries, eligibility cutoffs, and "must be 18 by" rules, which is why age is the date problem people most often get wrong by exactly one.
Common Mistakes to Avoid
Assuming every month has 30 days. This shortcut drifts by up to three days across a single quarter. The knuckle mnemonic — months landing on knuckles have 31 days — exists precisely because the pattern is irregular.
Off-by-one errors. Whether the start or end date counts changes the answer by a day. Establish the convention ("from" usually excludes the start day) before calculating, not after arguing about the result.
Forgetting February 29th. Any span crossing February in a year divisible by 4 needs the extra day. It is a single day that has voided contracts and expired warranties.
Adding months to month-end dates. January 31st plus one month has no clean answer, because February 31st does not exist. Systems variously clamp to February 28th or roll into March — know which rule your document assumes.
FAQ
What are "Business Days"? In contract law and shipping, "business days" refer only to Monday through Friday, excluding weekends and official public holidays. Calculating 90 business days is drastically different from calculating 90 calendar days. 90 business days is roughly 18 weeks (almost 4.5 months).
How many days are in each month? January, March, May, July, August, October, and December have 31 days. April, June, September, and November have 30. February alone varies: 28 days normally, 29 in a leap year.
What is a fortnight? A fortnight is fourteen days — exactly two weeks. The word survives in British English and in some formal contracts, where "within a fortnight" means within 14 calendar days.
If a contract just says "days," which kind are they? Unless the document specifies "business days," plain "days" almost always means calendar days, weekends and holidays included. When money depends on the interpretation, confirm it in writing rather than assuming.
Never risk missing a legal or financial deadline. Use the precise, leap-year-aware CalcUnit Date Calculator for all your scheduling needs.



