Days between dates calculator

📅 Free Date Utility Tool

Days Between
Dates Calculator

Calculate the exact number of days, weeks, business days, and weekends between any two dates — with a visual calendar timeline and instant breakdown.

⚡ Instant Date Calculation
🎯 Accurate Day Count
💼 Business Day Support
The first day of your date range.
The last day of your date range.

Days Between Dates Calculator: Calculate Date Differences Instantly

Whether you’re planning a project timeline, calculating a loan repayment period, figuring out how many business days until a deadline, or simply curious how long until an upcoming event — a days between dates calculator gives you the exact answer in seconds. Manual date calculations — especially across month boundaries, leap years, and varying month lengths — are surprisingly error-prone. This guide explains how date calculations work, what the different outputs mean, and where accurate date counting matters most in real life.

📅 Quick example: From January 1 to March 31 (inclusive of both dates) = 90 days. That’s 12 complete weeks + 6 remaining days, 64 business days, and 26 weekend days. Use the calculator above to instantly break down any date range.

What is a Days Between Dates Calculator?

A days between dates calculator is an online tool that computes the exact number of days, weeks, business days, and weekends between two specified dates. Unlike a simple subtraction (which gives a raw day count), a full-featured calculator also handles edge cases: whether to include the start and end dates in the count, how to handle leap years, whether to count only business days (Monday–Friday), and how to express the result in hours or minutes.

These tools are used daily by professionals across project management, HR, finance, legal, logistics, and healthcare — wherever precise date measurement is essential for planning, compliance, or contractual purposes. The calculator above provides all of these outputs simultaneously, with a visual calendar showing exactly which days fall within the specified range.

How This Date Calculator Works

The calculator uses JavaScript’s native Date object to perform exact calendar arithmetic — automatically handling different month lengths, leap years, and day-of-week calculations. Here’s what each setting controls:

  • Include start date: When enabled, the start date itself counts as Day 1. When disabled, counting begins from the day after the start date. This distinction matters significantly for legal contracts, notice periods, and probationary periods.
  • Include end date: When enabled, the end date is counted as the final day. Contracts often specify “up to and including” the end date — this toggle ensures accurate calculation for both interpretations.
  • Business days mode: Counts only Monday–Friday, excluding Saturday and Sunday. Note that public holidays are not excluded (these vary by country) — always verify with your regional calendar for payroll or legal calculations.
  • Hours equivalent: Multiplies total days by 24 to show the equivalent in hours — useful for SLA calculations, shift planning, and time tracking.

Understanding Calendar Days vs Business Days

The distinction between calendar days and business days is one of the most common sources of confusion in date calculations, and it has significant practical consequences:

Calculation TypeDefinitionCommon Use Cases
Calendar DaysEvery day including weekends and holidaysTravel duration, pregnancy weeks, event countdowns, loan terms
Business DaysMonday–Friday only, excluding weekendsPayroll, delivery timelines, notice periods, contract deadlines
Working DaysBusiness days minus public holidaysLegal compliance, employment contracts, court deadlines
Trading DaysStock market open days (varies by exchange)Financial settlement, option expiry, securities regulation

In everyday usage, “business days” and “working days” are often used interchangeably — but in legal, contractual, and financial contexts, the distinction between excluding weekends only versus excluding holidays as well can have material consequences. The calculator provides the business day count (Mon–Fri) and clearly notes that public holidays are not excluded.

Why Date Calculations Matter

Accurate date calculation underpins a surprisingly wide range of professional and personal activities. Errors in date arithmetic can cause missed deadlines, contract disputes, incorrect payroll, project overruns, and compliance failures. Here are the domains where precise day counting is most critical:

📊

Project Management

Calculating sprint lengths, milestone gaps, delivery windows, and resource allocation periods. Knowing that a 90-day project contains 64 business days (not 90 working days) is essential for accurate timeline planning.

💼

HR and Payroll

Calculating notice periods, probationary terms, leave entitlements, and payroll periods. Many employment contracts specify periods in business days, requiring precise Mon–Fri counting.

💰

Finance and Loans

Loan terms, interest accrual periods, payment due dates, and bond settlement are all calendar-day based. A single day’s error in a high-value loan calculation can represent significant financial exposure.

⚖️

Legal Deadlines

Statute of limitations, response periods, appeal windows, and contract expiry are often specified in calendar or business days. Courts and regulators treat these calculations with strict precision.

✈️

Travel Planning

Visa validity periods, itinerary duration, travel insurance coverage dates, and booking windows all require accurate day counting — especially across international date line crossings and daylight saving transitions.

🏗️

Construction and Contracts

Completion dates, penalty clauses, warranty periods, and practical completion certificates all hinge on precise date measurement. Many construction contracts specify damages per calendar day of delay.

How to Calculate Days Manually

While the calculator above handles all calculations automatically, understanding the manual method is valuable for verification and conceptual clarity:

Simple method (same year): Subtract the start date from the end date. From May 10 to September 25: Count remaining days in May (21) + June (30) + July (31) + August (31) + September 1–25 (25) = 138 days. Add 1 if including the start date.

For business days: For each complete 7-day week in the range, count 5 business days. For remaining days, count Mon–Fri individually. This is why the calculator does it automatically — manual counting across months is tedious and error-prone.

Leap year handling is automatic in digital calculations: the calculator uses the native date arithmetic of JavaScript, which correctly identifies leap years (divisible by 4, except century years unless divisible by 400). This means February 29 is correctly counted in leap years like 2024, 2028, and 2032.

Weeks, Months, and Date Differences Explained

The calculator expresses date differences in multiple units to suit different use cases. Understanding what each means helps you apply the right figure to your specific context:

UnitDefinitionExample (Jan 1 – Mar 31)
Calendar daysTotal days including all day types90 days
Complete weeksHow many full 7-day blocks fit12 weeks
Remaining daysDays after complete weeks are accounted for6 days
Business daysMonday–Friday count only64 days
Weekend daysSaturday + Sunday count26 days
Approximate monthsTotal days ÷ 30.44 (avg month)≈2.96 months
HoursTotal days × 242,160 hours

The “approximate months” figure uses an average month length of 30.44 days (365.25 ÷ 12, accounting for leap years). For precise month-counting in legal or financial contexts, always use calendar months (January to January = 12 months) rather than dividing days by 30 or 30.44.

Business Day Calculations and Use Cases

Business day calculations are among the most frequently needed in professional settings. Here are the most common real-world scenarios:

Delivery and Shipping

“5 business days” from a Monday order dispatch means delivery by the following Monday (skipping Saturday and Sunday). A “3 business day” processing time starting on a Thursday means completion by the following Tuesday. Use the calculator to quickly determine exact delivery dates for any shipping window.

Employment Notice Periods

A 30-day notice period given on a Wednesday covers 30 calendar days from the following day. A 20 business day notice period is equivalent to 4 full calendar weeks — but only if no weeks include public holidays. Always confirm whether the contract specifies calendar or business days.

Financial Settlement

Securities trades in most markets settle on a T+2 basis (trade date plus 2 business days). A trade executed on Thursday settles on Monday (not Saturday). A trade on Friday settles on Tuesday. The business day calculator makes these determinations instant.

Leap Years and Calendar Accuracy

Leap years add a single day (February 29) every 4 years — but with exceptions. The complete rule: a year is a leap year if it is divisible by 4, except century years, which must be divisible by 400. This means 1900 was not a leap year, but 2000 was. The next leap years are 2024, 2028, 2032, and 2036.

For date ranges that span February 29, the calculator correctly accounts for the extra day. This matters for annual event calculations, anniversary countdowns, and any multi-year date range that crosses a leap year February. All modern programming date libraries handle this correctly — but manual calculations using “add 365 days for one year” can be wrong by one day for ranges spanning February 29 in a leap year.

Real-Life Examples of Date Calculations

ScenarioStartEndDaysBusiness Days
Q1 financial quarterJan 1Mar 319064
Summer internshipJun 1Aug 319266
90-day probationFeb 3May 49064
Visa validity (6 months)Mar 15Sep 14183131
Construction deadline (1 year)Jan 1Dec 31365261

Common Mistakes in Date Calculations

  • Off-by-one errors: The most common mistake. “How many days from Monday to Friday?” — the answer is 4 (not 5) if you exclude the start, or 5 if you include it. Always clarify whether start and/or end dates are included.
  • Confusing calendar and business days: A “30 business day” period is approximately 6 calendar weeks, not 30 calendar days. Always confirm which unit applies in contractual contexts.
  • Ignoring public holidays in business day counts: The calculator gives Mon–Fri days but does not subtract public holidays. In many legal and employment contexts, public holidays must be excluded — always verify against your regional holiday calendar.
  • Month arithmetic errors: “Add 3 months to January 31” is ambiguous — April has only 30 days. Date arithmetic libraries handle this consistently (typically rounding to the last day of the target month), but manual calculation can produce different results.
  • Daylight saving time (DST): For date ranges that cross a DST transition, the actual number of hours differs from the calculated days × 24. The calendar day count remains accurate; only the hourly equivalent is slightly affected on transition days.

Best Practices for Scheduling and Planning

  • Always specify the unit in writing: When setting deadlines or contractual terms, specify whether the period is in calendar days, business days, or working days (business days minus holidays). Ambiguity leads to disputes.
  • Build buffer time for business day calculations: If a process takes 5 business days, plan for it to end on Day 7 or 8 (to account for any weekend falling within the period).
  • Use start-date-inclusive counting for most planning: When you say “this project starts on Monday and runs for 10 days,” Monday is typically counted as Day 1 (inclusive). Confirm this assumption with all stakeholders at project kickoff.
  • Cross-reference with regional holiday calendars: For international projects, delivery windows, or contracts involving parties in multiple countries, check that your business day count aligns with the applicable region’s public holiday schedule.
  • Recalculate whenever dates shift: If a project start date moves by a week, recalculate all downstream milestones. A 1-week shift in a 90-day project can cascade into 3–4 changed milestone dates — use this calculator to update them instantly.

Related Tools

Frequently Asked Questions

How do I calculate days between two dates?
Enter your start and end dates in the calculator above and results appear instantly. Manually: subtract the earlier date from the later date using day-of-year numbers, accounting for different month lengths and leap years. For example, from March 10 to July 20: days remaining in March (21) + April (30) + May (31) + June (30) + July 1–20 (20) = 132 calendar days. The calculator handles all of this automatically including leap years.
What is a date difference calculator?
A date difference calculator computes the number of days, weeks, months, business days, and other time units between two dates. It handles the complexity of varying month lengths (28, 29, 30, or 31 days), leap years, and day-of-week calculations that make manual date arithmetic error-prone. Advanced versions like the one above also provide calendar visualizations, include/exclude start and end date options, and separate weekday from weekend counts.
Does the calculator include weekends?
The default total days count includes all days including weekends. The calculator separately shows the weekend day count (Saturdays and Sundays) and business day count (Monday–Friday only). Enable the “Business days only” toggle to use the Mon–Fri figure as your primary result. The calendar view also visually distinguishes weekends from weekdays.
How do business days work?
Business days are Monday through Friday, excluding Saturday and Sunday. They do not automatically exclude public holidays (which vary by country and region). For a date range of 14 calendar days starting on a Monday, there are typically 10 business days. The calculator counts each Mon–Fri day individually within the specified range, giving an exact business day total regardless of where weekends fall within the period.
Can I exclude the start and end dates?
Yes — use the “Include start date” and “Include end date” toggles. When both are included (default), a range from Monday to Friday = 5 days. With start excluded: 4 days. With end excluded: 4 days. With both excluded: 3 days. This flexibility is important for legal and contractual calculations where the exact counting convention matters. When in doubt about which convention applies, consult the relevant contract or legal standard for your jurisdiction.
Does it account for leap years?
Yes — the calculator uses JavaScript’s native Date object, which correctly identifies all leap years. A year is a leap year if it’s divisible by 4, except century years unless they’re divisible by 400. Dates ranges spanning February 29 in leap years (2024, 2028, 2032, etc.) are correctly calculated as one day longer than the equivalent period in non-leap years. No manual adjustment is needed.
How many weeks are between two dates?
The calculator shows both complete weeks and the remaining days. Divide total days by 7 and take the whole number for complete weeks; the remainder is the leftover days. For 100 days: 14 complete weeks + 2 remaining days. For employment or payroll purposes, “weeks” in a contract typically means calendar weeks (7 days), not 5-day working weeks — always confirm the applicable definition.
Can I calculate months instead of days?
The calculator provides an approximate month count by dividing total days by 30.44 (the average calendar month length). This is an approximation — for precise monthly calculations (e.g., “exactly 6 calendar months from March 15”), use the specific end-date calculation rather than dividing days. Six calendar months from March 15 = September 15, regardless of whether the intervening period is 183 or 184 days.
Is this tool accurate?
Yes — the calculator uses standard calendar arithmetic that correctly handles all month lengths, leap years, and day-of-week calculations. The business day count is accurate for Mon–Fri counting but does not subtract public holidays, which vary by region. For legal, contractual, or financial applications requiring holiday exclusion, cross-reference the result with your regional public holiday calendar and subtract the applicable holidays within the date range.
What are calendar days vs working days?
Calendar days count every day including weekends and holidays. Working days (also called business days in most contexts) count Monday–Friday only, excluding weekends. Some jurisdictions define “working days” more narrowly to also exclude public holidays. A 30-calendar-day period contains approximately 22 working days (Mon–Fri). This distinction is critical in employment law, contract law, and financial regulations — always confirm the applicable definition for your specific context.
Can I use this for project planning?
Absolutely — the calculator is designed with project planning as a primary use case. Enter your project start and end dates to see total calendar days, business days, and week breakdowns. Use the business day count to set realistic task timelines (since work only happens on weekdays). Use the calendar view to visually confirm that milestones fall on working days rather than weekends. For recurring use, bookmark this page and recalculate whenever project dates shift.

Calculate your date range now

Instant day count, business days, calendar view — free and no sign-up required.

📅 Calculate Dates ↑ ↺ Reset Range ↑