Days Between Dates Calculator
Calculate the exact number of days between two dates. Find business days, weekdays, weekends, and weeks between any two dates. Free date calculator, no signup.
How to Calculate Days Between Two Dates
Calculating the number of days between two dates is one of the most common date arithmetic tasks. Whether you are tracking a project deadline, counting down to an event, or calculating the duration of a contract, knowing the exact number of days between two dates is essential.
The basic method for calculating days between dates involves converting both dates to a common reference point and finding the difference. Modern computers represent dates internally as the number of milliseconds since January 1, 1970 (the Unix epoch), making date subtraction straightforward.
Step-by-step manual calculation:
- Identify the start date and end date
- Count the number of complete months between the two dates
- Add the remaining days from partial months
- Account for varying month lengths (28, 29, 30, or 31 days)
- Consider leap years if the range spans February
Example: Days from March 15 to July 22
- March 15 to March 31 = 16 days
- April = 30 days
- May = 31 days
- June = 30 days
- July 1 to July 22 = 22 days
- Total = 16 + 30 + 31 + 30 + 22 = 129 days
Our calculator handles all of this automatically, including leap year detection and the option to exclude weekends for business day calculations.
Understanding Business Days vs Calendar Days
The distinction between calendar days and business days (also called working days or weekdays) is critical in many professional and legal contexts. Calendar days include every day — Monday through Sunday. Business days typically exclude Saturdays and Sundays.
Calendar days count every single day in the range, regardless of whether it falls on a weekend or holiday. This is the simplest calculation and is used for:
- Age calculations
- Rental agreements (daily rates)
- Insurance coverage periods
- Medical timelines (e.g., incubation periods)
- Countdown to events
Business days exclude Saturdays and Sundays and are used for:
- Shipping and delivery estimates
- Legal deadlines and court filings
- Financial settlement periods (T+2 for stock trades)
- Project management and sprint planning
- Employee payroll and leave calculations
How to calculate business days: For each week in the date range, count 5 business days. For partial weeks, count only the weekdays (Monday through Friday). A 30-calendar-day period contains approximately 22 business days, though the exact number depends on which day of the week the period starts.
Common business day counts:
| Calendar Days | Approximate Business Days | Weeks + Days |
|---|---|---|
| 7 | 5 | 1 week |
| 14 | 10 | 2 weeks |
| 30 | 21–22 | 4 weeks + 2 days |
| 60 | 42–44 | 8 weeks + 4 days |
| 90 | 63–65 | 12 weeks + 6 days |
| 180 | 128–130 | 25 weeks + 5 days |
| 365 | 260–262 | 52 weeks + 1 day |
Note that public holidays are not automatically excluded from business day calculations in this tool, as holidays vary by country and region. For precise legal or financial calculations, always verify holiday schedules for your jurisdiction.
Leap Years and Their Effect on Date Calculations
Leap years add complexity to date calculations because February has 29 days instead of the usual 28. Understanding when leap years occur is essential for accurate day counting across multi-year ranges.
Leap year rules:
- A year is a leap year if it is divisible by 4
- Exception: years divisible by 100 are not leap years
- Exception to the exception: years divisible by 400 are leap years
Examples:
- 2024 → divisible by 4, not by 100 → leap year (366 days)
- 2025 → not divisible by 4 → common year (365 days)
- 1900 → divisible by 100, not by 400 → common year
- 2000 → divisible by 400 → leap year
The Gregorian calendar averages 365.2425 days per year, which is remarkably close to the actual tropical year of approximately 365.2422 days. This small difference accumulates to about one day every 3,236 years.
Days in each month:
| 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 |
| Total | 365 | 366 |
When calculating days between dates that span one or more February months, our calculator automatically accounts for whether each year in the range is a leap year, ensuring perfect accuracy.
Weeks and Days Breakdown
Converting a total number of days into weeks and remaining days provides a more intuitive understanding of time spans. This breakdown is especially useful for project planning, pregnancy tracking, and fitness programs.
The conversion is simple:
- Weeks = Total Days ÷ 7 (integer part)
- Remaining Days = Total Days mod 7 (remainder)
Examples:
- 100 days = 14 weeks and 2 days
- 45 days = 6 weeks and 3 days
- 365 days = 52 weeks and 1 day
- 200 days = 28 weeks and 4 days
Common time periods in weeks:
| Period | Calendar Days | Weeks + Days |
|---|---|---|
| 1 month (avg) | 30.44 | 4 weeks + 2 days |
| 1 quarter | 91.25 | 13 weeks |
| 6 months | 182.5 | 26 weeks + 0.5 days |
| 1 year | 365 | 52 weeks + 1 day |
| Pregnancy | 280 | 40 weeks |
| Academic year | ~270 | ~38 weeks + 4 days |
Our calculator automatically provides the weeks and days breakdown alongside the total day count, so you get multiple perspectives on the time span with a single calculation.
Practical Uses for Date Difference Calculations
Date arithmetic appears in countless real-world scenarios. Here are some of the most common applications where knowing the exact number of days between dates is essential.
Project management: Agile sprints are typically 2 weeks (14 calendar days, 10 business days). Knowing the exact number of business days between a project start and deadline helps allocate resources and set milestones. A 90-day project contains roughly 64 business days — enough for about 6.4 two-week sprints.
Legal deadlines: Many legal systems specify deadlines in calendar days or business days. A 30-day notice period starting on a Monday will end on a different day depending on weekends and holidays. Filing deadlines, statutes of limitations, and appeal windows all require precise date arithmetic.
Financial calculations: Interest accrual depends on the exact number of days. Banks use different day-count conventions: Actual/365 (divides by 365), Actual/360 (divides by 360, used in money markets), and 30/360 (assumes 30-day months). A $10,000 loan at 5% annual interest accrues $1.37 per day using Actual/365.
Travel planning: Calculating the duration of a trip in days helps with budgeting (daily hotel rates, per diem allowances), visa requirements (many visas limit stays to 90 days within a 180-day period), and packing (one outfit per day or per two days).
Health and fitness: Training programs are structured in weeks and days. A marathon training plan might span 16–20 weeks (112–140 days). Pregnancy is tracked in weeks from the last menstrual period, with the due date at 40 weeks (280 days). Medication courses are prescribed in days.
Employment: Calculating tenure, vacation accrual, and probation periods all rely on date differences. An employee who started on January 15 and is evaluated after 90 days has their review on April 15 (accounting for a 28-day February in non-leap years).
Education: Academic terms, assignment deadlines, and exam schedules are all date-driven. Knowing there are exactly 45 business days until finals helps students plan their study schedule — that is 9 weeks of 5 study days each.
Date Formats Around the World
One of the biggest sources of confusion in date calculations is the variety of date formats used globally. When entering dates, it is important to know which format is expected to avoid errors.
Common date formats:
| Format | Example | Used In |
|---|---|---|
| MM/DD/YYYY | 03/15/2026 | United States |
| DD/MM/YYYY | 15/03/2026 | Europe, Latin America, Australia |
| YYYY-MM-DD | 2026-03-15 | ISO 8601 (international standard) |
| DD.MM.YYYY | 15.03.2026 | Germany, Russia |
| YYYY/MM/DD | 2026/03/15 | Japan, China, Korea |
The ISO 8601 format (YYYY-MM-DD) is the international standard and eliminates ambiguity. It is the format used by this calculator and by most programming languages and databases. The ISO format also has the advantage of sorting correctly in alphabetical/lexicographic order.
Ambiguous dates: The date 03/04/2026 could mean March 4 (US) or April 3 (Europe). Dates where both the day and month are 12 or less (like 05/06/2026) are inherently ambiguous without knowing the regional convention. Always use YYYY-MM-DD when communicating internationally.
Historical calendar considerations: The Gregorian calendar was adopted at different times in different countries. Britain and its colonies did not switch from the Julian calendar until 1752, when 11 days were skipped (September 2 was followed by September 14). Russia did not adopt the Gregorian calendar until 1918. For dates before these transitions, day calculations may not be straightforward.
Time Zones and Date Boundaries
When calculating days between dates, time zones can create surprising complications. A date is not just a date — it depends on where you are in the world.
The International Date Line: When it is Monday in Tokyo (UTC+9), it can still be Sunday in New York (UTC-5). This 14-hour difference means that the "current date" differs depending on location. For pure date calculations (without times), this usually does not matter, but it becomes relevant for deadlines specified as "by end of day" in a particular time zone.
Daylight Saving Time (DST): Most regions that observe DST shift clocks forward by one hour in spring and back by one hour in autumn. This means one day per year has only 23 hours (spring forward) and another has 25 hours (fall back). For day counting purposes, these are still counted as single days, but if you are calculating hours between two timestamps, DST transitions can add or subtract an hour.
UTC (Coordinated Universal Time): To avoid ambiguity, many systems use UTC for date calculations. UTC does not observe daylight saving time and provides a consistent reference point. Our calculator works with dates (not times), so time zone effects are not a factor — a day is always counted as a full calendar day.
Business day considerations across time zones: If you are working with a team in London and a client in Sydney, "business days" may have only a few overlapping hours. A Friday in Sydney is still Thursday evening in London. When counting business days for international transactions, always specify which time zone's calendar governs the calculation.
Frequently Asked Questions
How many days are there between two dates?
To find the number of days between two dates, subtract the earlier date from the later date. For example, from January 1, 2026 to December 31, 2026 is 364 days. Our calculator does this instantly — just enter your start and end dates and click calculate. The result includes total calendar days, weeks and days breakdown, and optionally business days.
How do I calculate business days between two dates?
Business days are weekdays (Monday through Friday), excluding Saturdays and Sundays. To calculate business days, count the total days between your two dates, then subtract all Saturdays and Sundays in that range. In our calculator, select "Yes (business days only)" in the Exclude Weekends dropdown. Note that public holidays are not automatically excluded — you may need to subtract those manually for your jurisdiction.
Does the calculator account for leap years?
Yes. Our calculator automatically detects leap years and accounts for the extra day in February. A leap year occurs every 4 years (with exceptions for century years not divisible by 400). The calculator uses JavaScript's built-in Date object, which handles leap years correctly for any date range.
How many business days are in a year?
A standard year has 365 days, which equals 52 weeks plus 1 extra day. This gives 260 weekdays (52 × 5) plus 0 or 1 additional weekday depending on what day January 1 falls on. So a typical year has 260 to 262 business days before subtracting public holidays. In the US, with 11 federal holidays, the typical count is about 250 working days per year.
What is the difference between calendar days and business days?
Calendar days include every day of the week — all 7 days including Saturday and Sunday. Business days (also called working days) include only Monday through Friday, excluding weekends. A 14-calendar-day period always contains 10 business days. The distinction matters for shipping estimates, legal deadlines, and financial calculations.
How do I count days including the start date?
By default, most date calculators count the days between two dates, excluding the start date and including the end date. If you need to include both the start and end dates in your count, simply add 1 to the result. For example, a vacation from June 1 to June 7 spans 6 days between the dates, but you are away for 7 days (including both June 1 and June 7).
How many days until a specific date?
To find how many days until a future date, use today's date as the start date and your target date as the end date. For instance, to count down to New Year's Day 2027, enter today's date and January 1, 2027. The calculator will show you the exact number of calendar days, business days, and weeks remaining.
Can I calculate days between dates in different years?
Absolutely. Our calculator works across any range of years. You can calculate the days between January 1, 2020 and December 31, 2030 (4,017 days) just as easily as between two dates within the same month. The calculator correctly handles all year boundaries, leap years, and varying month lengths.
How are weeks and days calculated from total days?
To convert total days to weeks and days: divide the total by 7. The quotient is the number of complete weeks, and the remainder is the extra days. For example, 100 days ÷ 7 = 14 weeks with a remainder of 2 days, so 100 days = 14 weeks and 2 days. This breakdown is provided automatically by our calculator.
Why might my day count differ from another calculator?
Date calculators can differ based on whether they include the start date, end date, or both in the count. Some calculators count "inclusive" days (both start and end), while others count "exclusive" days (neither start nor end). Our calculator counts the days between the two dates (excluding start, including end), which is the most standard approach. Additionally, differences in handling time zones or leap seconds can cause minor discrepancies in some edge cases.