Date Calculator
Add or subtract days, weeks, months, or years to/from any date. Calculate the difference between two dates in any unit. Add or subtract days, weeks, or months from any date. Calculate the exact date difference between two calendar dates.
Enter Values
Fill in the fields and press Calculate to see instant results.
Date Calculator β Find the Difference Between Two Dates or Add Days to a Date
The Date Calculator solves two fundamental date math problems: (1) finding the exact number of days, weeks, or months between two calendar dates, and (2) finding a new date by adding or subtracting a specific number of days, weeks, months, or years from a starting date. Both calculations are performed instantly with full Gregorian calendar accuracy.
Date arithmetic is surprisingly tricky to do by hand. Months have varying lengths (28, 29, 30, or 31 days), leap years add an extra day every four years (with century-year exceptions), and crossing year boundaries introduces additional complexity. This calculator handles all of that automatically, letting you focus on the result.
π‘ Practical Example: A 90-day notice period starting on November 15, 2026 ends on February 13, 2027 β not February 15, because November has 30 days, not 31. This calculator catches those details automatically.
When to Use This Date Calculator
π Project & Deadline Management
Calculate exactly when a 30-day, 60-day, or 90-day deadline falls from a contract signing date. Determine how many days remain until a project milestone or delivery date.
βοΈ Medical & Pregnancy Due Dates
Pregnancy is approximately 280 days (40 weeks) from the last menstrual period. Adding 280 days to the LMP date gives the estimated due date. The calculator handles this precisely.
βοΈ Legal & Contract Dates
Calculate notice periods, statute of limitations deadlines, lease expiration dates, and warranty expiration dates. Many legal timeframes require exact calendar-day precision.
π° Loan & Interest Calculation
Banks calculate interest on exact calendar days. Find the number of days between a loan origination date and a payment date to compute daily interest accrual precisely.
π Event Planning & Countdowns
Find out exactly how many days until a wedding, graduation, vacation, or anniversary. Calculate how many weeks of preparation time you have for a major event.
π Historical Research
Calculate the exact number of days between historical events, the age of ancient documents, or the duration of historical periods, wars, or reigns of leaders.
The Date Calculation Formula Explained
There are two distinct modes in date calculation:
Mode 1: Date Difference
Under the hood, both dates are converted to a Julian Day Number (JDN) or Unix timestamp, then subtracted. This naturally handles all month-length variations and leap years.
Mode 2: Add/Subtract from Date
When adding months, if the resulting day doesn't exist (e.g., January 31 + 1 month = February 31, which doesn't exist), the calculator snaps to the last valid day of the month (Feb 28 or 29).
Unit Conversion Reference
| Unit | Equivalent in Days | Notes |
|---|---|---|
| 1 Week | 7 days | Always exact |
| 1 Month | 28β31 days | Depends on the specific month |
| 1 Year | 365 or 366 days | 366 in leap years |
| 1 Quarter | 90β92 days | Q1 has 90 days (91 in leap year) |
Step-by-Step Calculation Guide
Choose Your Calculation Mode
Select 'Find difference between dates' if you want to know how many days are between two dates. Select 'Add or subtract from a date' if you want to find a future or past date.
Enter the Start (or Reference) Date
This is the earlier date for difference mode, or the anchor date for add/subtract mode. Use the date picker or type in YYYY-MM-DD format.
Enter the End Date or Duration
For difference mode, enter the later date. For add/subtract mode, enter the amount (e.g., 90) and unit (days, weeks, months, years). Check the +/- toggle for addition or subtraction.
Review Multi-Unit Output
The result is shown in multiple units: total days, total weeks, and a breakdown of years + months + days. This comprehensive output handles edge cases like dates spanning multiple years.
Use the Result for Your Purpose
Copy the date or day count into your contract, calendar, or planning document. For deadline management, always double-check that the result date is a business day.
Worked Examples
Given:
- β’ Start Date: 2026-01-01
- β’ End Date: 2026-12-31
Solution:
Mode: Date Difference
2026 is not a leap year β 365 days in total
Jan 1 to Dec 31 = 365 β 1 = 364 days (start inclusive, end exclusive)
Or: 365 days if both endpoints are included
Whether you count from the start or include the end date depends on context. For contract durations, typically both endpoints are included.
Given:
- β’ Start Date: 2026-11-15
- β’ Add: 90 days
Solution:
November has 30 days β 30 β 15 = 15 days remaining in Nov
90 β 15 = 75 days remaining after Nov 30
December: 31 days β 75 β 31 = 44 days into January
January: 31 days β 44 β 31 = 13 days into February
Result: February 13, 2027
A 90-day notice period from November 15 expires on February 13, 2027 β not the 15th as you might initially guess.
Given:
- β’ Start Date: 2026-08-31
- β’ Add: 6 months
Solution:
August 31 + 6 months = February 31, 2027
February 2027 has 28 days (not a leap year)
Result snaps to the last valid day: February 28, 2027
When adding months causes the day to overflow the target month, the calculator snaps to the last day of that month β the mathematically correct behavior.
Given:
- β’ Today: 2026-07-05
- β’ Event Date: 2027-01-01 (New Year's)
Solution:
July remaining: 31 β 5 = 26 days
August: 31, September: 30, October: 31, November: 30, December: 31 days
Total: 26 + 31 + 30 + 31 + 30 + 31 = 179 days
There are 179 days between July 5 and January 1, 2027 β about 25.5 weeks, or just under 6 months.
Given:
- β’ Date 1: 1969-07-20 (Moon Landing)
- β’ Date 2: 2026-07-20 (57th Anniversary)
Solution:
Year span: 2026 β 1969 = 57 years
Same month and day β exactly 57 years
Leap years in range (1972β2024, every 4 years): 14 leap years
Total days: (57 Γ 365) + 14 = 20,805 + 14 = 20,819 days
The Apollo 11 moon landing was 20,819 days before July 20, 2026 β its 57th anniversary.
Common Mistakes to Avoid
Forgetting whether endpoints are included or excluded
Jan 1 to Jan 5 is 4 days (not 5) when using the standard convention of including the start but not the end. For event durations, you may need to add 1 to include both endpoints.
Treating all months as 30 days
A '3-month' period starting January 31 ends April 30, not May 1. Always use date addition rather than multiplying by 30.
Ignoring leap years in multi-year spans
A 4-year period has either 1460 or 1461 days, depending on whether a leap year falls within it. This matters for interest calculations and date-based contracts.
Confusing calendar days with business days
A 10-calendar-day deadline and a 10-business-day deadline can differ by 4β6 days. Contracts and legal notices often specify which convention applies.
Crossing time zones when calculating dates
An event occurring at 11 PM EST on December 31 is already January 1 in London. For international events, confirm the time zone before calculating date differences.
Tips and Best Practices
- βAlways confirm the inclusion/exclusion convention. Before using a date count for a contract or legal document, confirm whether both endpoints are counted or just one. The difference of 1 day can matter legally.
- βUse ISO 8601 format (YYYY-MM-DD) to avoid ambiguity. The date '01/02/03' is ambiguous globally β it could be January 2, 2003 or February 1, 2003. Always use the YYYY-MM-DD format for international clarity.
- βFor business deadlines, check if the result is a weekday. If a legal deadline falls on a Saturday or Sunday, it typically rolls to the next business day (Monday). Always verify with your jurisdiction's rules.
- βAdd buffer time for major project deadlines. If a contract expires 6 months from signing, calculate the exact expiration date and set a reminder 2β4 weeks early to allow time for renewal negotiations.
- βCross-check important dates with a calendar. For dates that matter legally or financially, verify the calculator's output by opening an actual calendar and confirming the month, day, and year.
Related Calculators
Age Calculator
Calculate exact age in years, months, and days
Day Counter
Count calendar days between two dates
Day of the Week Calculator
Find what day any date falls on
Time Duration Calculator
Calculate duration including hours and minutes
Hours Calculator
Calculate total hours worked or elapsed
Browse all Date & Time Calculators β
People Also Calculate
Conclusion
The Date Calculator eliminates the tedium and error-prone nature of manual date arithmetic. By handling all the quirks of the Gregorian calendar β variable month lengths, leap years, and year-boundary crossings β it delivers precise results whether you are finding the difference between two dates or projecting a future deadline from a known start point.
For contract management, project planning, legal research, financial calculations, or personal event planning, accurate date math is essential. A single off-by-one error in a legal notice period or loan calculation can have real consequences. Use this calculator to get the math right the first time.
Disclaimer: This calculator uses standard Gregorian calendar arithmetic. For legal, financial, or medical decisions involving date calculations, always verify with the relevant professional or official documentation.
Frequently Asked Questions
How do you calculate days between two dates?
Convert both dates to a serial number, then subtract. The calculator handles this automatically, accounting for leap years and varying month lengths.
Does the calculator include the start and end date?
By default, the start date is included but the end date is not. Add 1 to include both endpoints.
How do you add months to a date?
Add the months to the month component. If the resulting day doesn't exist in the target month, snap to the last valid day of that month.
How many days in a leap year?
366 days. A leap year occurs in years divisible by 4, except century years which must also be divisible by 400.
What is the difference between calendar days and business days?
Calendar days include weekends and holidays. Business days count only MondayβFriday, excluding public holidays.
How do I calculate a 90-day deadline?
Use the 'Add to Date' mode, enter your start date, and add 90 days. The result is your exact deadline date.
Can I calculate dates across century boundaries?
Yes. The calculator uses standard Gregorian calendar arithmetic that correctly handles the leap year exception for century years.
People Also Calculate
Calculators visitors commonly use alongside this one.