Days Between Dates Calculator
Fill in the values and click Calculate to see results
This date duration calculator handles all these scenarios in one tool. It computes the difference between a start date and an end date and breaks the result into years, months, weeks, days, hours, minutes, and seconds. You also get an estimated business day count that excludes Saturdays and Sundays, the day of the week for both dates, and a weeks-and-days breakdown. For example, a construction project that runs from 1 March 2025 to 15 November 2026 returns 624 days, 89 weeks and 1 day, 20 months, and roughly 446 business days, plus it tells you the project starts on a Saturday and ends on a Sunday. Every calendar quirk — leap years, century leap year rules, months of different lengths, and year boundaries — is handled automatically so your result is always correct.
What Is a Date Difference?
Date differences are calculated by counting the number of calendar boundaries crossed between the start and end date. For days, this means counting each midnight boundary. For months, it means counting each month boundary regardless of how many days each month contains. From 31 January to 28 February is 28 days but 1 month. From 31 January to 1 March is 29 days but still 1 month if you count by calendar boundaries (the boundary crossed is the March 1 mark, not the February 28 mark). This calculator uses the standard calendar-difference method: it counts full years first, then remaining months, then remaining days.
For example, from 10 April 2024 to 5 September 2026 is 2 years (because the anniversary of 10 April 2026 has passed), plus 4 months (April to August), plus 26 days (10 April to 5 September). The total is 2 years, 4 months, and 26 days, or 879 days in total. You can verify this result with the calculator below.
Formula
Real-World Applications of Date Difference Calculations
In legal practice, statutes of limitation are defined in years from the date of the cause of action. A personal injury claim in California must be filed within two years of the injury date. The exact number of days between the injury and the filing date determines whether the case is timely. Similarly, contract notice periods, lease termination windows, and insurance claim deadlines all depend on accurate date difference calculations. A legal assistant who miscounts by one day can cost their firm a case.
In finance and accounting, accrued interest on fixed-income securities uses either the actual number of days between coupon dates (actual/actual convention) or a 360-day year with 30-day months (30/360 convention). Corporate bonds in the US use 30/360, while US Treasury bonds use actual/actual. The same bond held for the same period can produce different accrued interest amounts under the two conventions, and the difference matters for large institutional positions. This calculator gives you the actual day count, which you can then adjust for the applicable convention.
In travel and logistics, the duration between departure and return dates determines visa requirements, travel insurance coverage periods, and accommodation costs. Many countries limit visa-free stays to 90 days within a 180-day window, and overstaying by even one day can result in fines, deportation, or future entry bans. An accurate day count between arrival and departure dates is essential for compliance with immigration rules.
Example 1
Solution
Answer
Common Date Calculation Mistakes
Leap year oversights are another common error. The simple rule “divisible by 4” catches most leap years but fails for century years. The year 1900 was not a leap year (divisible by 100 but not by 400). The year 2000 was a leap year (divisible by 400). The year 2100 will not be a leap year. A manual calculation that applies only the divisible-by-4 rule adds one extra day for every century year that is not actually a leap year. If your date range spans February 1900, that extra day changes your result.
Inclusive vs exclusive counting causes confusion. Some contexts count both the start date and the end date (inclusive counting), while others count only the full days between them (exclusive counting). A rental agreement from 1 January to 31 January could be 30 days or 31 days depending on whether the move-in and move-out dates are both counted. This calculator uses the standard exclusive method: it counts the full 24-hour periods between the two dates, so from 1 January to 2 January is 1 day.
Treating calendar days as business days without adjustment leads to scheduling errors. Five calendar days that fall from Wednesday to Monday include only three business days (Wednesday, Thursday, Friday). A project deadline expressed in business days that is planned using calendar days will be due two days earlier than expected, potentially causing a missed delivery.
Example 2
Solution
Answer
Why Accurate Date Calculations Matter
In financial markets, the day count fraction determines how much interest accrues on a bond between two coupon dates. For a $10 million corporate bond position using the 30/360 convention, a one-day error in the day count changes the accrued interest by approximately $278 for a 5% coupon. For large institutional portfolios, such errors compound across hundreds of positions and can produce significant P&L discrepancies. The difference between using actual days versus 30-day months on a long-dated swap can run into thousands of dollars.
In employment law, probation periods, parental leave eligibility, and vesting schedules all depend on precise date arithmetic. An employee who starts on 15 January and has a 90-day probation period completes it on 14 April only if the date difference is calculated correctly. If the HR system uses 30-day months, the probation ends on 13 April, and a termination decision made on that basis could be legally challenged. The same principle applies to benefit eligibility, where a one-day gap in coverage can create a pre-existing condition exclusion period under some insurance policies.
In healthcare, gestational age is measured in weeks and days from the first day of the last menstrual period, and the due date is calculated as 40 weeks (280 days) from that date. An error of even a few days in the date difference can shift the estimated due date, potentially affecting decisions about induction, cesarean scheduling, and fetal viability assessments. Accurate date calculation is not a convenience in these contexts — it is a professional and legal necessity.
How to Calculate Days Between Dates Manually
Step 1: Count the remaining days in the start month. Take the start date and count how many days remain in that month after the start day. If the start date is 10 April, subtract 10 from the total days in April (30) to get 20 remaining days. Do not include the start date itself if you are using exclusive counting (the standard method).
Step 2: Add the full months between the start and end month. List the complete months between the start month and the end month, and add their total day counts. From April to September, the full months are May (31), June (30), July (31), and August (31), giving 123 days from full months. If the date range crosses a year boundary, continue counting through December and into the next year.
Step 3: Add the partial days in the end month. Count the days from the first of the end month up to (but not including, in exclusive counting) the end date. If the end date is 5 September, add 4 days (1 through 4 September). Alternatively, if you are counting inclusively, add 5 days.
Step 4: Adjust for leap years. If the date range includes a 29 February in a leap year, add one extra day. Remember that century years (1900, 2100) are not leap years unless divisible by 400 (2000 was a leap year).
Understanding the Gregorian Calendar
Under the Gregorian rules, a year is a leap year if it is divisible by 4, except for century years (years ending in 00), which are leap years only if they are divisible by 400. This means the year 2000 was a leap year, but 1900 and 2100 are not. The leap day is inserted as 29 February, making leap years 366 days long. A common year has 365 days. The months range from 28 to 31 days: January (31), February (28 or 29), March (31), April (30), May (31), June (30), July (31), August (31), September (30), October (31), November (30), and December (31).
The calendar repeats every 400 years because 400 Gregorian years contain exactly 146,097 days (400 × 365 + 97 leap days), which is divisible by 7. This means the pattern of dates and weekdays repeats exactly every 400 years. The calendar for the year 2000 is identical to the calendar for the year 2400. This 400-year cycle is the mathematical foundation that makes long-range date calculations predictable and reliable, and it is the reason a computer can compute date differences for dates centuries apart with perfect accuracy.
Days in Each Month
Number of days in each month for common and leap years.
| Month | Days (Common Year) | Days (Leap Year) |
|---|---|---|
| January | 31 | 31 |
| February | 28 | 29 |
| March | 31 | 31 |
| April | 30 | 30 |
| May | 31 | 31 |
| June | 30 | 30 |
| July | 31 | 31 |
| August | 31 | 31 |
| September | 30 | 30 |
| October | 31 | 31 |
| November | 30 | 30 |
| December | 31 | 31 |
Calendar Days vs Business Days
This calculator estimates business days by counting only weekdays (Monday through Friday) between the start and end date. It does not deduct public holidays because those vary by country, state, and even by company policy. For a rough estimate, multiply your total days by 5/7 and round down. For example, 100 calendar days is approximately 71 business days (100 × 5/7 = 71.4). The actual business day count may be higher or lower depending on which day of the week the range starts and ends. A date range of 10 calendar days from a Wednesday to the following Friday includes 8 business days, while the same 10-day range from a Saturday to the following Monday includes only 6 business days – because the start and end positions relative to the weekend change the count.
Many service level agreements define response times in business days. A support ticket that must be resolved within 5 business days and is submitted on Thursday at 5 PM will be due by the following Thursday, assuming no public holidays. If the agreement used calendar days, the same ticket would be due on Tuesday. Using the wrong day type can mean the difference between meeting and missing the SLA target. For precise work, always confirm whether your contract uses calendar days or business days, and whether it excludes specific public holidays.
Notable Date Ranges in Practice
Typical date ranges in calendar and business days across different industries. Business days are approximate and exclude public holidays.
| Description | Calendar Days | Business Days (approx.) | Common Use |
|---|---|---|---|
| Standard calendar quarter (Q1) | 90–92 | 62–64 | Financial reporting, earnings |
| Academic semester (fall) | 105–120 | 75–86 | Course scheduling, tuition billing |
| Typical lease term (1 year) | 365–366 | 260–262 | Rental agreements, contracts |
| Standard probation period | 90 | 64–66 | Employment trial period |
| Pregnancy (gestation) | 280 (40 weeks) | — | Estimated due date calculation |
| Short-term visa window | 90 of 180 | — | Schengen area travel |
| Bond coupon period (6 mo) | 181–184 | — | Fixed-income interest accrual |
Example 3
Solution
Answer
Professional Applications of Date Difference Calculations
In fixed-income finance, different instruments use different day count conventions. US Treasury bonds use the actual/actual convention: the accrued interest equals the coupon rate multiplied by the fraction (actual days elapsed / actual days in the period). Corporate bonds in the US use 30/360: each month is treated as 30 days and each year as 360 days. A bond purchased on 15 February and sold on 15 March earns different accrued interest under the two conventions. For February in a non-leap year, actual/actual gives 28 days while 30/360 gives 30 days in the full period, but the numerator (days held) is 28 under actual/actual and 30 under 30/360. International Swaps and Derivatives Association (ISDA) definitions specify which convention applies to each derivative product, and the day count is a contractual term.
In human resources and payroll, employee tenure is calculated from the hire date to the current date or to a vesting event date. A 401(k) plan may require one year of service (365 days) before eligibility. An employee hired on 1 July 2025 becomes eligible on 1 July 2026, but only if the employer counts actual days (365) rather than 12 months (which could be 365 or 366 days depending on the year). Leave accrual rates are often expressed as hours per month or per year of service, and an employee who starts mid-month accrues a prorated amount based on the exact number of calendar days remaining in that month divided by the total days in the month.
In clinical research, trial protocols specify observation periods in days or weeks. A 28-day safety follow-up after drug administration must be calculated from the date of administration, not from the next day. If the administration occurs on 1 March, the 28-day follow-up window closes on 28 March (exclusive counting: 28 full days after day 0), not on 29 March. Protocol deviations due to incorrect date arithmetic can result in data exclusion from the final analysis. The FDA and EMA expect precise date-difference calculations in all regulatory submissions, and audit trails show every date entry. The US Census Bureau (opens in new tab) relies on accurate date calculations for demographic surveys and population estimates.
Example 4
Solution
Answer
Important Considerations for Date Difference Calculations
Inclusive vs exclusive counting. The calculator uses exclusive counting: it counts full 24-hour periods between the dates. From 1 January to 2 January is 1 day. Some legal and financial contexts use inclusive counting where both the start and end dates are counted. In those contexts, 1 January to 2 January is 2 days. Always confirm which convention applies in your specific situation. If you need inclusive counting, add 1 to the total days result.
Daylight saving time. The date difference counts calendar days, not 24-hour clock periods. When clocks spring forward (losing one hour) or fall back (gaining one hour), the number of hours in a calendar day changes, but the date difference remains the same. For hourly calculations over short periods that cross a DST transition, the total hours may be one hour more or less than expected. The calculator’s hour count is based on the actual elapsed time, which accounts for DST automatically through the underlying date engine.
30/360 vs actual/actual conventions. In finance, the 30/360 day count convention treats every month as 30 days and every year as 360 days, which simplifies interest calculations but diverges from actual calendar days. A 30/360 year has 360 days, while the actual year has 365 or 366 days. This calculator returns actual calendar days. To convert to 30/360 days for financial calculations, use the formula: 30/360 days = (years × 360) + (months × 30) + days, where months and days are counted under the 30/360 convention rules.
Calendar system limitations. The calculator uses the Gregorian calendar, which is the global civil standard. Dates before 15 October 1582 (when the Gregorian calendar was adopted) are not supported because the calendar system was different. For dates after 2099, the Gregorian rules continue to apply and the calculation remains valid, but some applications may have practical date limits on date pickers. The calculator does not support historical Julian calendar dates or dates in other calendar systems. The United Nations (opens in new tab) uses standardized date conventions for international administrative and legal purposes.
Date Difference Across Different Calendar Systems
The ISO week date system (ISO 8601) represents dates by year, week number, and weekday. Under this system, a date is expressed as, for example, 2026-W25-3 (Wednesday of the 25th week of 2026). Date differences in the ISO week system are measured in weeks and days rather than months and years. This system is used in manufacturing, logistics, and project scheduling where weekly cycles matter more than calendar months. A production order placed in week 40 and due in week 45 spans 5 weeks regardless of which calendar months those weeks fall in.
The fiscal year used by businesses and governments often starts on a date other than 1 January. The US federal government’s fiscal year runs from 1 October to 30 September. Many retail companies use a fiscal year ending 31 January to align with post-holiday inventory cycles. Date differences measured within a fiscal year require knowing the fiscal year start date and may span across fiscal year boundaries. The calculator uses calendar year dates, but you can apply fiscal year logic by treating the fiscal year start as your start date and computing the difference to the end of the fiscal year period.
The Chinese, Islamic, and Hebrew calendars are lunisolar or lunar systems where months are tied to the lunar cycle. Date differences in these systems follow different rules: a lunar month is approximately 29.5 days, so a year in the Islamic calendar is about 354 days, roughly 11 days shorter than a Gregorian year. A date difference of one Gregorian year equals about 1.03 Islamic years. Converting between these systems requires specialized algorithms that this calculator does not implement, but the principles of date subtraction remain the same once dates are expressed in a common calendar system.
Summary
References
- [1]National Institute of Standards and Technology, The Gregorian Calendar - NIST Time and Frequency Division. https://www.nist.gov/pml/time-and-frequency-division
- [2]International Swaps and Derivatives Association, ISDA Day Count Conventions, 2006.
- [3]NIST, NIST Time and Frequency Division. https://www.nist.gov/pml/time-and-frequency-division
- [4]United States Courts, Federal Rules of Civil Procedure Rule 6 - Computing and Extending Time.
Glossary
- Date difference – The amount of calendar time elapsed between two dates, measured in years, months, weeks, days, hours, minutes, and seconds. Date differences are computed using calendar boundaries rather than fixed time intervals.
- Calendar day – A 24-hour period from midnight to midnight as defined by the Gregorian calendar. Calendar days include all days of the week, including weekends and public holidays.
- Leap year – A year with 366 days instead of 365, occurring every four years except for century years not divisible by 400. The extra day (February 29) compensates for the Earth’s orbital period of approximately 365.2422 days.
- Month – A division of the calendar year that varies in length from 28 to 31 days. The Gregorian calendar has 12 months: January (31), February (28 or 29), March (31), April (30), May (31), June (30), July (31), August (31), September (30), October (31), November (30), and December (31).
- Year – The time it takes for the Earth to complete one orbit around the Sun, approximately 365.2422 days. The Gregorian calendar represents this as either 365 days (common year) or 366 days (leap year).
- Week – A unit of time equal to seven consecutive calendar days, starting on Sunday or Monday depending on cultural convention. The ISO standard defines Monday as the first day of the week.
- Business day – A day on which normal business operations are conducted, typically Monday through Friday, excluding weekends and public holidays. Business day counts vary by jurisdiction due to different public holiday calendars.
- Weekday – Any day of the week that is not a weekend day. In most countries, weekdays are Monday through Friday. Weekdays are used for business operations, school schedules, and most commercial activities.
- Weekend – The two-day period at the end of the week, typically Saturday and Sunday in most Western countries. Weekend days are excluded from business day counts and often have different operating hours for businesses and services.
- Time zone – A region of the globe that observes a uniform standard time for legal, commercial, and social purposes. Date differences at the calendar-day level are not affected by time zones, but elapsed hours may differ when events occur in different time zones.
How to Use?
- 1.
Select the start date: Choose the earlier of the two dates from the date picker. This is the date from which the calculator begins counting.
- 2.
Select the end date: Choose the later date from the second date picker. This must be on or after the start date. The calculator counts up to but does not include this date.
- 3.
Review the primary duration result: The Exact Duration field shows the span in years, months, and days. Below it, you will find the breakdown into total days, weeks, months, years, hours, minutes, and seconds.
- 4.
Check the business days estimate: The Business Days field shows the approximate number of weekdays (Monday through Friday) within the range. This estimate does not deduct public holidays, which vary by jurisdiction.
- 5.
Explore the reference content: Scroll below the calculator to find the days-per-month table, notable date range examples, Gregorian calendar explanation, and detailed guidance on professional applications.
- 6.
Use the examples to verify your understanding: The worked examples section shows real date ranges with their calculated results. Compare these against your own calculations to ensure you are using the correct date format.