Date Calculator
Add or subtract days, weeks, months, and years from any date.
Date Calculator
Result Date
Duration Added/Subtracted
Result Date Info
What Is Date Calculation?
Date calculation involves adding or subtracting time periods from dates, finding differences between dates, and converting between various date formats. These operations are fundamental to scheduling, project management, financial planning, and everyday time management.
| Operation | Description | Common Uses | Example |
|---|---|---|---|
| Date difference | Days between two dates | Age calculation, project duration | Jan 1 to Dec 31 = 364 days |
| Add days/weeks | Future date calculation | Due dates, delivery estimates | Today + 30 days |
| Subtract days | Past date calculation | Historical research, records | Today - 90 days |
| Business days | Weekday-only counting | Contract deadlines, SLAs | 10 business days from today |
| Month/year math | Calendar unit operations | Billing cycles, subscriptions | Today + 3 months |
| Week number | ISO week of year | Planning, scheduling | January 21, 2026 = Week 4 |
Basic Date Arithmetic
Where:
- N= Number of days/weeks/months to add or subtract
- Start Date= The reference date for calculation
- End Date= Target date for difference calculations
Calculating Days Between Dates
Finding the number of days between two dates is one of the most common date calculations. The method counts every calendar day between the start and end dates.
| Time Period | Typical Days | Notes |
|---|---|---|
| 1 week | 7 days | Always exactly 7 days |
| 1 month | 28-31 days | Varies by month |
| 1 quarter | 90-92 days | Q1 has 90 (91 in leap year) |
| 1 year | 365-366 days | 366 in leap years |
| Average month | 30.44 days | 365.25 ÷ 12 |
| Fortnight | 14 days | Two weeks |
Inclusive vs. exclusive counting: Most date calculators use exclusive counting (not including the start date), so January 1 to January 3 = 2 days. Inclusive counting would give 3 days. Always clarify which method applies to your situation.
Days Between Formula
Where:
- Exclusive= Start date not counted (most common)
- Inclusive= Both start and end dates counted
Business Days Calculation
Business days (working days) exclude weekends and optionally holidays. This calculation is essential for contractual deadlines, shipping estimates, and project planning.
| Calendar Days | Business Days (approx) | Calculation |
|---|---|---|
| 7 days (1 week) | 5 business days | Mon-Fri only |
| 14 days (2 weeks) | 10 business days | 2 full work weeks |
| 30 days | ~22 business days | Varies by month start |
| 90 days (1 quarter) | ~65 business days | Minus holidays |
| 365 days (1 year) | ~261 business days | 52 weeks × 5 days + 1 |
| 1 month average | ~21-22 business days | 261 ÷ 12 = 21.75 |
Holiday considerations: US federal holidays (10-11 per year) reduce annual business days to approximately 250. Always account for regional holidays when calculating international deadlines.
Business Days Formula
Where:
- Total Days= Calendar days in the period
- Weekend Days= Saturdays and Sundays
- Holidays= Public/observed holidays
Adding Months and Years
Adding months or years to a date requires special handling because months have different lengths. The end-of-month convention addresses what happens when adding months to dates like January 31.
| Start Date | Add | Result | Notes |
|---|---|---|---|
| January 15 | 1 month | February 15 | Simple case |
| January 31 | 1 month | February 28/29 | End-of-month adjustment |
| March 31 | 1 month | April 30 | April has only 30 days |
| February 29, 2024 | 1 year | February 28, 2025 | Non-leap year adjustment |
| August 31 | 6 months | February 28/29 | Half-year calculation |
| December 15, 2025 | 2 months | February 15, 2026 | Year rollover |
Financial conventions: For loans and investments, the 30/360 convention assumes 30 days per month and 360 days per year, simplifying interest calculations.
Leap Year Handling
Accurate date calculations must account for leap years, which add February 29 every four years (with exceptions). This affects multi-year calculations and any period spanning February.
| Year Range | Leap Years | Total Days | Average Days/Year |
|---|---|---|---|
| 2024-2024 | 1 (2024) | 366 | 366 |
| 2024-2025 | 1 | 731 | 365.5 |
| 2024-2027 | 1 | 1,461 | 365.25 |
| 2020-2030 | 3 (2020, 2024, 2028) | 4,018 | 365.27 |
| 2000-2100 | 25 | 36,890 | 365.24 |
Leap year rule: A year is a leap year if divisible by 4, EXCEPT century years must also be divisible by 400. So 2000 was a leap year, but 1900 was not.
Leap Year Test
Where:
- year= The year to test
- %= Modulo (remainder) operator
Week Number and Day of Year
The ISO week number identifies which week of the year a date falls in. Week 1 is defined as the week containing the first Thursday of the year, which means January 1 can sometimes be in week 52 or 53 of the previous year.
| Date | Week Number | Day of Year | Day of Week |
|---|---|---|---|
| January 1, 2026 | Week 1 | Day 1 | Thursday |
| January 21, 2026 | Week 4 | Day 21 | Wednesday |
| July 4, 2026 | Week 27 | Day 185 | Saturday |
| December 31, 2026 | Week 53 | Day 365 | Thursday |
| March 1, 2026 | Week 9 | Day 60 | Sunday |
| September 21, 2026 | Week 39 | Day 264 | Monday |
Day of year: Useful for scientific, agricultural, and astronomical calculations. Day 1 is January 1; day 365 (or 366) is December 31.
Date Format Conversions
Different regions and systems use different date formats. Converting between formats is essential for international communication and data processing.
| Format | Example | Used In | ISO 8601 |
|---|---|---|---|
| MM/DD/YYYY | 01/21/2026 | United States | No |
| DD/MM/YYYY | 21/01/2026 | Europe, UK, Australia | No |
| YYYY-MM-DD | 2026-01-21 | International, databases | Yes |
| DD-Mon-YYYY | 21-Jan-2026 | Business documents | No |
| Month DD, YYYY | January 21, 2026 | Formal writing (US) | No |
| DD Month YYYY | 21 January 2026 | Formal writing (UK) | No |
ISO 8601: The international standard format (YYYY-MM-DD) eliminates ambiguity and sorts correctly. Always use this format for databases and international communication.
Worked Examples
Calculate Days Between Two Dates
Problem:
How many days are between January 15, 2026, and March 20, 2026?
Solution Steps:
- 1Start date: January 15, 2026
- 2End date: March 20, 2026
- 3Days remaining in January: 31 - 15 = 16 days
- 4Days in February 2026 (not a leap year): 28 days
- 5Days in March through the 20th: 20 days
- 6Total: 16 + 28 + 20 = 64 days
Result:
64 calendar days between January 15 and March 20, 2026
Add 90 Days to a Date
Problem:
What date is 90 days after November 15, 2025?
Solution Steps:
- 1Start date: November 15, 2025
- 2Days remaining in November: 30 - 15 = 15 days (brings us to Nov 30)
- 3Days to add: 90 - 15 = 75 more days needed
- 4December: 31 days (running total: 15 + 31 = 46)
- 5Days still needed: 90 - 46 = 44 more days
- 6January 2026: 31 days (running total: 46 + 31 = 77)
- 7Days still needed: 90 - 77 = 13 more days
- 8February 13, 2026
Result:
February 13, 2026 (90 days after November 15, 2025)
Calculate Business Days
Problem:
How many business days between Monday, January 5, 2026, and Friday, January 23, 2026?
Solution Steps:
- 1Total calendar days: 18 days
- 2Identify weekends: Jan 10-11, Jan 17-18 = 4 weekend days
- 3No holidays in this period assumed
- 4Business days: 18 - 4 = 14 business days
- 5Verify: Week 1 (4 days) + Week 2 (5 days) + Week 3 (5 days) = 14 ✓
Result:
14 business days (excluding weekends)
Tips & Best Practices
- ✓Use ISO 8601 format (YYYY-MM-DD) for dates in databases and international communication to avoid ambiguity.
- ✓A regular year has 365 days; a leap year has 366. The average is 365.25 days per year.
- ✓Business days typically average about 21-22 per month, or 250-261 per year depending on holidays.
- ✓When calculating deadlines, clarify whether counting is inclusive or exclusive of the start date.
- ✓For rough estimates: 30 days ≈ 1 month, 90 days ≈ 1 quarter, 365 days = 1 year.
- ✓Remember that months have different lengths: Jan/Mar/May/Jul/Aug/Oct/Dec have 31; Apr/Jun/Sep/Nov have 30; Feb has 28/29.
- ✓Week numbers can be confusing at year boundaries—always verify the ISO week number for dates in late December or early January.
Frequently Asked Questions
Sources & References
Last updated: 2026-01-22