Date Difference Calculator

Calculate the exact number of days between two dates instantly. Get a detailed breakdown in years, months, weeks, days, hours, minutes, and seconds — plus business days, weekend counts, and an option to add or subtract days from any date.

Enter two dates to see the difference.

This calculator uses the Gregorian calendar. Business day calculations exclude Saturdays and Sundays but do not account for public holidays. For legal or contractual purposes, always verify with the relevant authority.

What Is a Date Difference Calculator?

A date difference calculator is a utility that computes the exact duration between two calendar dates. At its simplest it answers the question "how many days are between date A and date B," but a fully featured calculator goes much further — breaking the result down into years, months, weeks, days, hours, minutes, and even seconds. It can also distinguish between calendar days and business days (weekdays only), making it equally useful for personal countdowns and professional project planning. Unlike mental arithmetic, which is notoriously error-prone when months have different lengths and leap years add an extra day every four years, a date difference calculator handles all of these edge cases automatically. Whether you need to know how many days until a wedding, the exact duration of a lease agreement, or how many business days remain before a filing deadline, this tool delivers an accurate, instant answer. Our Date Difference Calculator also includes an add-and-subtract mode that lets you find the date that falls a given number of days before or after a reference date — perfect for calculating due dates, warranty expiration dates, and project milestones.

How to Calculate the Number of Days Between Two Dates

Calculating the difference between two dates involves converting each date to a common numerical representation and then subtracting. The most widely used method in computing is the Julian Day Number (JDN), a continuous count of days since the beginning of the Julian Period (January 1, 4713 BC in the proleptic Julian calendar). Once both dates are expressed as JDNs, the difference is a simple subtraction.

Core Formula
Days = JDN(End Date) − JDN(Start Date)

Each Gregorian date (Year Y, Month M, Day D) is converted to a Julian Day Number using the algorithm published by Hatcher (1984, Quarterly Journal of the Royal Astronomical Society). The formula accounts for the Gregorian leap-year rule: a year is a leap year if it is divisible by 4, except for century years, which must also be divisible by 400. Once both JDNs are computed, the difference gives the exact number of calendar days between the two dates.

Breaking Down Into Years, Months, and Days

To express the difference in a human-friendly format of Y years, M months, and D days, the calculator uses month-borrowing arithmetic. Starting from the start date, it counts complete years to the largest anniversary that does not exceed the end date, then complete months from that anniversary, and finally remaining days. Because months have 28, 29, 30, or 31 days, the day remainder depends on the specific months spanned — which is why the breakdown is not a simple division but a calendar-aware subtraction.

Business Days Calculation

Business days (also called working days or weekdays) exclude Saturdays and Sundays. The calculator determines the day of the week for both dates, counts the total weeks in between (each contributing 5 business days), and adjusts for partial weeks at the start and end. Note that public holidays are not deducted automatically because holiday schedules differ by country, state, and even employer. For precise business-day calculations involving holidays, you should manually subtract the applicable holidays from the result.

Date Difference Categories

Date spans vary enormously depending on the context. The table below classifies common durations to help you interpret your result and apply it to real-world scenarios.

Duration RangeCategory
0 daysSame Day
1 – 6 daysDays
7 – 29 daysWeeks
30 – 364 daysMonths
365 – 3,649 daysYears
3,650+ daysDecades

Limitations of the Date Difference Calculator

While this calculator provides accurate results for the vast majority of everyday use cases, there are several inherent limitations you should be aware of when interpreting the output:

Timezone Differences Not Considered

The calculator works with calendar dates only and does not factor in time zones. If one event occurs in New York (EST/UTC−5) and another in Tokyo (JST/UTC+9), the 14-hour offset could mean the two events fall on different calendar dates even though fewer than 24 hours separate them. For international date calculations, always note the timezone of each date.

Public Holidays Not Included in Business Days

Business-day calculations exclude Saturdays and Sundays but do not deduct public holidays. Holiday calendars differ by country (the US has 11 federal holidays, Japan has 16 national holidays, India observes 20+ gazetted holidays) and may vary by state, province, or employer. For precise business-day counts, subtract applicable holidays manually from the result.

Historical Dates May Be Inaccurate

The calculator uses the Gregorian calendar, which was adopted on October 15, 1582 in Catholic countries, but much later in others (Britain in 1752, Russia in 1918, and China in 1929). Dates before the local adoption of the Gregorian calendar were recorded in the Julian calendar, which drifted approximately 3 days per 400 years. Calculations involving pre-Gregorian dates may therefore not match historical records.

Leap Seconds Not Accounted For

Since 1972, 27 leap seconds have been added to Coordinated Universal Time (UTC) to compensate for irregularities in Earth's rotation. The calculator does not include these leap seconds. For day-level calculations the impact is zero, but if you convert results to total hours, minutes, or seconds, the figure may differ from an atomic-clock measurement by up to 27 seconds for dates spanning the full leap-second era.

Jurisdiction-Specific Counting Rules Not Applied

Different legal systems have specific rules about how days are counted. In Korean law, the "initial day exclusion" (초일불산입) principle means the first day of a period is generally not counted. In US federal procedure, the day of the triggering event is excluded, but the last day is included. EU regulations often use "calendar days" inclusive of both endpoints. This calculator does not automatically apply any jurisdiction's counting rules — use the include/exclude end-date toggle and adjust as needed for your legal context.

Date Difference Calculations by Domain

Date arithmetic plays a critical role across many professional and personal domains. The following sections explain how different fields use date difference calculations and what conventions apply in each context.

Legal & Compliance

In legal practice, deadlines are often expressed as a specific number of calendar or business days from a triggering event. Statutes of limitations define the maximum time after an event within which legal proceedings may be initiated — for example, the statute of limitations for personal injury in most US states is 2 years (730 days) from the date of injury. Filing deadlines for appeals, responses, and motions are counted precisely, and missing a deadline by even one day can result in case dismissal.

Contract law relies heavily on date calculations for notice periods, cure periods, and expiration dates. A 30-day notice-to-cure clause means the breaching party has exactly 30 calendar days from receipt of notice to remedy the default. Employment law uses date calculations for probationary periods, FMLA leave entitlements (12 weeks within a 12-month period), and COBRA continuation coverage (60-day election window). Immigration attorneys count days of physical presence for visa eligibility — for example, the US Substantial Presence Test requires 183 days over a 3-year weighted period.

Business & Project Management

Project managers use date difference calculations to build timelines, allocate resources, and track progress. A project with a 90-business-day timeline starting on January 15 has a different end date than one with 90 calendar days — the business-day version extends roughly 18 weeks (about 126 calendar days) when you account for weekends. Agile development teams plan in sprints, typically 10 business days (2 weeks), and use date calculations to set sprint boundaries, release dates, and retrospective schedules.

Financial operations depend on precise day counts. Accounts receivable teams track invoice aging in 30/60/90-day buckets. Interest accrual on commercial loans often uses an actual/360 or actual/365 day-count convention, where the exact number of days between transactions determines the interest charge. Payment terms like "Net 30" or "2/10 Net 30" (2% discount if paid within 10 days, full amount due in 30 days) require accurate date arithmetic to determine discount eligibility and due dates.

Education & Academic Planning

Academic calendars are built around precise date ranges. A typical US college semester spans approximately 75 instructional days (15 weeks of 5-day weeks), while a quarter system uses approximately 50 instructional days (10 weeks). School districts set enrollment cutoff dates — for example, a child must turn 5 by September 1 to enter kindergarten that year — making exact age-in-days calculations critical for parents.

Standardized testing schedules, application deadlines, and financial-aid timelines all revolve around specific dates. Graduate school applications often have deadlines of December 1 or January 15, and calculating the number of days remaining helps students plan their preparation. Academic research projects with grant funding have strict reporting periods, and researchers must track project durations to meet compliance requirements.

Personal Life & Milestones

Date difference calculations help individuals plan and commemorate personal milestones. Couples count down days to their wedding, track relationship anniversaries in days, or calculate how many days they have been married. Expecting parents use a due date calculator (typically 280 days from the first day of the last menstrual period) to plan for the arrival of their baby.

Fitness and health goals often have time-based targets: a 30-day fitness challenge, a 90-day diet plan, or a "Couch to 5K" running program spanning 9 weeks (63 days). Travel planners count days between departure and return to determine trip duration, ensure visa validity, and estimate daily budgets. Retirement planners calculate the number of days until their target retirement date to maintain motivation and track progress.

Healthcare & Medical

In healthcare, precise date calculations are essential for treatment protocols and medical records. Gestational age is measured in weeks and days from the last menstrual period, guiding prenatal care milestones — for example, the anatomy scan at 18–22 weeks and viability threshold at approximately 24 weeks (168 days). Medication regimens specify exact durations: a typical antibiotic course of 7–14 days, or chemotherapy cycles measured in 21- or 28-day intervals.

Clinical trials track enrollment dates, treatment durations, and follow-up periods with day-level precision. Vaccine schedules specify minimum intervals between doses — for example, the second dose of MMR vaccine should be given at least 28 days after the first dose. Post-surgical recovery timelines, physical therapy programs, and prescription refill dates all depend on accurate day counting.

Why Calculate the Difference Between Dates?

Date calculations are woven into almost every aspect of modern life. In the workplace, project managers calculate timelines to set milestones and allocate resources. Human-resources departments count service days for benefits accrual, probation periods, and vacation entitlements. Legal professionals compute filing deadlines, statute-of-limitations windows, and sentence durations — where a single day can determine whether a case is admissible or a right is forfeited.

In personal finance, knowing the exact number of days between dates helps you calculate accrued interest on a loan, determine the holding period for tax-advantaged investments, or figure out how many pay periods remain until a savings goal is reached. Insurance companies count days to prorate premiums and process claims. Even everyday situations — planning a vacation, timing a pregnancy, counting down to retirement — become easier when you can get a precise, error-free day count.

Beyond practical applications, date arithmetic is fundamental in science and engineering. Astronomers use Julian Day Numbers to track celestial events across millennia. Epidemiologists count days between symptom onset and diagnosis to model disease progression. Agricultural scientists calculate growing-season days to optimize planting schedules. In all of these fields, an accurate date difference calculator replaces tedious manual counting and eliminates the risk of off-by-one errors.

Who Should Use a Date Difference Calculator?

Project managers and team leads rely on date calculations to build Gantt charts, set sprint durations, and track delivery milestones. Knowing the exact number of business days between a project kickoff and a client deadline ensures that work is scoped realistically and resources are allocated efficiently. Agile teams often plan in two-week sprints — a date calculator quickly confirms the sprint end date and the number of working days available.

Legal and compliance professionals use date calculators daily. Statutes of limitations, appeal windows, contract notice periods, and regulatory filing deadlines are all expressed as a number of calendar or business days from a triggering event. Missing a deadline by even one day can result in forfeited rights, penalties, or dismissed cases. An automated calculator removes the guesswork from these high-stakes computations.

Students and educators find date calculators useful for tracking semester durations, assignment deadlines, and study-plan timelines. Parents use them to count days until school holidays or to determine a child's exact age for enrollment cutoff dates. Healthcare providers count gestational days for prenatal care, and fitness enthusiasts track training-program durations. In short, anyone who works with deadlines, durations, or countdowns benefits from a reliable date difference tool.

Date Calculation Tools Compared

Several tools can calculate date differences. Each has strengths and weaknesses depending on your needs for accuracy, convenience, and additional features.

Date Difference Calculator (this tool)

Accuracy
Exact (Gregorian)
Key Features
Instant results, year/month/day breakdown, business days, add/subtract mode, total hours/minutes/seconds
Limitations
No holiday database, no timezone support

Excel / Google Sheets (DATEDIF)

Accuracy
Exact (Gregorian)
Key Features
Integrates with spreadsheets, supports NETWORKDAYS with custom holiday lists, programmable with formulas
Limitations
Requires spreadsheet knowledge, DATEDIF is undocumented in Excel, not mobile-friendly

Unix Timestamp Subtraction

Accuracy
Exact (to the second)
Key Features
Language-agnostic, handles time as well as dates, works in any programming environment
Limitations
Requires programming knowledge, not human-readable, limited to dates after Jan 1 1970

Age Calculator

Accuracy
Exact (Gregorian)
Key Features
Optimized for birth-date-to-today calculations, zodiac sign, life stage classification, birthday countdown
Limitations
Focused on age from birth, not general-purpose date ranges

Business Days Calculator

Accuracy
Exact (with holiday data)
Key Features
Excludes weekends and public holidays, country-specific holiday databases
Limitations
Holiday data may be outdated, limited date-breakdown features

For most everyday date-difference needs — countdown to an event, project timeline, contract duration — this calculator provides the fastest and most convenient solution. If you need holiday-aware business-day calculations, supplement the result with your local holiday calendar. For programmable or batch calculations, Excel/Sheets DATEDIF and NETWORKDAYS functions are powerful alternatives.

Practical Guide to Date Difference Calculations

Knowing the exact number of days between two dates unlocks practical applications across project management, financial planning, personal milestones, and more. This guide walks you through real-world scenarios and best practices.

Project Management & Deadlines

  • 1.When scoping a project, always distinguish between calendar days and business days. A "60-day" deliverable due on a Monday typically means 60 calendar days, landing on a Wednesday or Thursday roughly 8.5 weeks later. However, the available working time is only about 42–44 business days after removing weekends. Use the business-days toggle to see how many productive days you actually have.
  • 2.Build buffer into your timelines. Industry data shows that 70% of projects exceed their estimated duration. If your date calculation shows 45 business days to a deadline, plan your work for 40 days and keep 5 days as contingency. This approach accounts for unexpected blockers, sick days, and scope changes without jeopardizing the deadline.
  • 3.For recurring milestones — weekly status reports, biweekly sprints, monthly reviews — use the add/subtract mode to quickly find the date that is exactly 7, 14, or 30 days from your reference point. This is faster and more accurate than counting on a calendar, especially when the period crosses month boundaries or includes a leap day.

Contracts & Legal Deadlines

  • 1.Always verify the counting convention specified in a contract. "30 days" may mean 30 calendar days, 30 business days, or 30 days excluding the triggering date (the "day-zero" convention). A 30-calendar-day notice period starting on March 1 expires on March 31, but a 30-business-day period starting on March 1 does not expire until approximately April 14, depending on holidays — a difference of two full weeks.
  • 2.For statute-of-limitations calculations, note that many jurisdictions exclude the day of the triggering event and include the last day. If an injury occurs on January 15 and the statute of limitations is 2 years, the filing deadline is January 15 two years later (not January 14). Use the include/exclude end-date toggle to match the applicable legal convention.
  • 3.When dealing with international contracts, pay attention to the date format used (DD/MM/YYYY in most countries vs. MM/DD/YYYY in the US). Misinterpreting 03/04/2026 as March 4 versus April 3 creates a 30-day discrepancy that could cause a party to miss a deadline. Always use unambiguous date formats (e.g., "4 March 2026" or ISO 8601: "2026-03-04") in legal documents.

D-Day Countdowns & Personal Milestones

  • 1.Use the date difference calculator as a D-Day counter by entering today as the start date and your target event as the end date. Common D-Day uses include counting down to a wedding, exam date, vacation departure, baby due date, or retirement date. Seeing the exact number of remaining days helps you plan preparation steps and maintain motivation.
  • 2.For relationship milestones, enter the start date of your relationship and today's date to find exactly how many days you have been together. Many couples celebrate 100-day, 200-day, 365-day, and 1,000-day anniversaries. The add/subtract mode can also help you find the date of your next milestone — for example, entering your anniversary date and adding 1,000 days.
  • 3.Pregnancy due dates are typically calculated as 280 days (40 weeks) from the first day of the last menstrual period (LMP). Enter the LMP as the start date and add 280 days to find the estimated due date. Keep in mind that only about 5% of babies are born on their exact due date — the normal range is 37 to 42 weeks (259 to 294 days).

Financial Planning & Interest Calculations

  • 1.Many financial instruments calculate interest based on the exact number of days in the accrual period. The "actual/365" day-count convention divides the actual number of days by 365 to determine the fraction of the annual interest rate that applies. For example, a $10,000 deposit at 4.5% APR held for 90 days earns approximately $10,000 × 0.045 × (90/365) = $110.96 in interest.
  • 2.Tax-advantaged investment strategies often depend on holding periods. In the US, long-term capital gains tax rates (0%, 15%, or 20%) apply to assets held for more than 365 days. Selling a stock on day 365 means short-term rates (up to 37%) apply, while holding one more day qualifies for the lower long-term rate. A date difference calculator helps you pinpoint the exact day you can sell at the favorable rate.
  • 3.Certificate of deposit (CD) maturity dates, loan payment schedules, and bond coupon dates all hinge on precise day counts. If you are comparing two CDs with different issue dates and terms, calculating the exact maturity date of each helps you build an efficient CD ladder with regular liquidity intervals.

Additional Information & Tips

When calculating date differences, a common source of confusion is whether to include the end date in the count. The convention depends on the context: if you are counting the number of nights in a hotel stay, you typically exclude the checkout day (so checking in on March 1 and out on March 5 = 4 nights). If you are counting the number of days you are present at an event, you include both the first and last day (March 1 through March 5 = 5 days). Our calculator provides an "include end date" toggle so you can match the convention that applies to your situation.

Important Considerations

  • This calculator does not account for timezone differences. If the start date is in one timezone and the end date in another, there could be a one-day discrepancy depending on the exact times involved. For international date calculations, consider the timezone of each event.
  • Business day calculations exclude weekends (Saturday and Sunday) but do not exclude public holidays. Holiday schedules vary by country, state, and organization, so you may need to manually subtract holidays from the business day count.

For historical dates before the adoption of the Gregorian calendar (October 15, 1582), the calculator may produce results that differ from contemporary records, which used the Julian calendar. The Julian calendar drifted approximately 3 days every 400 years relative to the solar year, leading to a 10-day correction when the Gregorian calendar was introduced. If you are working with pre-1582 dates, be aware of this potential discrepancy.

Our calculator also does not account for leap seconds — occasional one-second adjustments applied to UTC to keep it aligned with Earth's rotation. Since 1972, 27 leap seconds have been added. For day-level calculations this is irrelevant, but if you convert the day count to total hours, minutes, or seconds, the result is an approximation that may differ from an atomic-clock measurement by a few seconds over long spans.

Frequently Asked Questions About Date Difference Calculations

To calculate the number of days between two dates, enter the start date and end date into the calculator and it will instantly compute the exact day count. Behind the scenes, the calculator converts both dates to Julian Day Numbers — a continuous count of days used in astronomy and computing — and subtracts one from the other. You can also calculate manually: count the remaining days in the start month, add the full days of each intervening month, and add the days in the end month. However, this manual method is error-prone because months have 28, 29, 30, or 31 days, and leap years add an extra day in February. The calculator handles all of these variations automatically and gives you results in multiple units — total days, weeks, months, years, hours, minutes, and seconds.

Yes, the calculator fully accounts for leap years using the Gregorian calendar's leap-year rule: a year is a leap year if it is divisible by 4, except for years divisible by 100, which are not leap years unless they are also divisible by 400. This means 2024 is a leap year (divisible by 4), 1900 was not a leap year (divisible by 100 but not 400), and 2000 was a leap year (divisible by 400). When your date range spans a February in a leap year, the calculator correctly counts February as having 29 days instead of 28. This also affects the year-month-day breakdown: for example, the period from January 31 to March 1 is 30 days in a leap year (29 days in February + 1 day) and 29 days in a non-leap year.

Whether to include the end date depends on what you are measuring. For durations (how many days pass between two events), you typically exclude the end date: March 1 to March 5 = 4 days. This is the default behavior of most date calculators and matches how hotel stays are counted (check-in March 1, check-out March 5 = 4 nights). For counting days of presence or attendance (how many days are you at a conference from March 1 through March 5), you include both endpoints: 5 days. Legal contexts vary — some jurisdictions count both endpoints, others exclude the first day. Our calculator provides an 'include end date' toggle so you can switch between conventions with a single click. When in doubt, check the specific rules of the contract, regulation, or convention that applies to your situation.

Business days (also called working days or weekdays) are calendar days minus Saturdays and Sundays. To calculate them, the calculator determines the total calendar days between the two dates, counts the number of complete weeks (each contributing 5 business days and 2 weekend days), and adjusts for any partial week at the beginning or end of the range. For example, Monday March 3 to Friday March 14 contains 2 complete weeks = 10 business days. However, this count does not exclude public holidays, because holiday schedules differ by country, state, and employer. To get an accurate business-day count including holidays, first get the calculator's business-day result, then manually subtract the number of holidays that fall on weekdays within the range. In the US, there are typically 10–11 federal holidays per year; the UK has 8 bank holidays; Japan has 16 national holidays.

A common (non-leap) year has 365 days, while a leap year has 366 days due to the extra day added to February (February 29). Leap years occur every 4 years, with exceptions for century years not divisible by 400. Over a 400-year cycle, there are 97 leap years and 303 common years, giving an average year length of 365.2425 days. This average is important for long-span calculations: a period of exactly 10 average years is 3,652.425 days, not 3,650. When the calculator reports a result in years, it uses calendar-accurate counting rather than dividing by a fixed 365, so the output correctly reflects whether each specific year in the range is a leap year or not.

Calculating months and years between two dates requires calendar-aware arithmetic because months have different lengths (28–31 days). The method works as follows: first, count the number of complete years from the start date to the latest anniversary that does not exceed the end date. Then, count complete months from that anniversary forward. Finally, count the remaining days. For example, from January 31 to March 15: there are 0 complete years, 1 complete month (January 31 to February 28/29), and then the remaining days from February 28/29 to March 15 (15 or 14 days depending on whether it is a leap year). This is more nuanced than dividing total days by 30 or 365 because it preserves the natural month and year boundaries that people intuitively understand.

Calendar days include every day on the calendar — weekdays, weekends, and holidays. Business days (also called working days) include only Monday through Friday, excluding weekends. The distinction matters because many deadlines, contracts, and regulations specify one or the other. For example, a "10 calendar day" return policy gives you 10 consecutive days including weekends, while a "10 business day" processing time gives you two full work weeks (14 calendar days). Over a typical month, there are about 30 calendar days but only 21–23 business days. Over a full year, there are 365 calendar days but approximately 252 business days (before subtracting holidays). Always confirm which type of day a deadline or duration refers to, as confusing the two can create errors of 30–40%.

To calculate your age in days, enter your date of birth as the start date and today's date as the end date. The calculator will show your total age in days along with the year/month/day breakdown. For context, a 30-year-old has lived approximately 10,957 days (accounting for 7–8 leap years in that span). Milestone day-birthdays are fun to celebrate: 10,000 days old falls around age 27 years and 4 months, 15,000 days around age 41, and 20,000 days around age 54 years and 9 months. You can also use the add/subtract mode: enter your birth date and add 10,000 days to find the exact calendar date of your 10,000-day birthday. Our dedicated Age Calculator provides additional features like zodiac signs and life-stage classification if you want a more detailed age analysis.

Month borrowing in date subtraction works similarly to borrowing in arithmetic. When the day of the end date is smaller than the day of the start date, you cannot simply subtract the days directly. Instead, you 'borrow' one month from the month count and add the number of days in the previous month to the end date's day. For example, to find the difference from January 31 to March 10: the day (10) is less than the start day (31), so you borrow one month — reducing the month count by 1 — and add the number of days in February (28 or 29) to 10, getting 38 or 39. Then 38 − 31 = 7 days (in a non-leap year), with 1 month and 7 days as the result. The specific number of days borrowed depends on which month is being borrowed from, because February has 28 or 29 days, April/June/September/November have 30, and the remaining months have 31.

Yes, the calculator converts the total day count into hours, minutes, and seconds for your convenience. Each day equals exactly 24 hours, 1,440 minutes, and 86,400 seconds. So a 30-day difference equals 720 hours, 43,200 minutes, and 2,592,000 seconds. These conversions assume uniform 24-hour days and do not account for daylight saving time transitions (which can make a calendar day 23 or 25 hours long) or leap seconds (occasional 1-second adjustments to UTC). For everyday planning purposes, these approximations are perfectly accurate. For scientific or engineering applications requiring sub-second precision over long time spans, you would need to use a specialized timekeeping library that accounts for leap seconds and timezone transitions.

Related Calculators