Skip to content
πŸ“†

Date Difference Calculator

Find the exact difference between two dates in days, weeks, months, hours, and minutes.

Share this calculator:WhatsAppTelegramX
Add this calculator to your site:
Written & reviewed by K L Hemanth KumarLast updated July 2026Formulas verified against RBI, the Income Tax Department, AMFI, and EPFO

About the Date Difference Calculator

Knowing the exact number of days, weeks, or months between two dates is far more useful than approximations for project planning, legal timelines, notice periods, and personal milestones. Unlike rough mental math - where 'two months' can mean anywhere from 59 to 62 days depending on the months - this calculator handles every edge case precisely: February's 28 or 29 days, months with 30 or 31 days, and date ranges spanning multiple leap years. Whether you need to verify a contract end date, confirm a loan maturity timeline, or calculate exact elapsed service time, the result is instant and unambiguous.

For Indian taxpayers, exact date arithmetic has direct financial consequences. Long-term capital gains (LTCG) on equity investments require a holding period of more than 365 calendar days - selling on day 365 still qualifies as short-term, attracting 15% tax instead of 10%. Similarly, ELSS (tax-saving mutual funds) have a strict 3-year lock-in from the date of each unit purchase. If you are calculating the earliest redemption date for units purchased on different SIP dates, the difference tool gives you the exact unlock date for each tranche.

Legal and compliance timelines in India are measured in precise calendar days. The Limitation Act 1963 sets a 3-year window for filing most civil suits from the date the cause of action arises - missing this window by a single day can bar your case entirely. For loan agreements, the moratorium end date, the first EMI date, and prepayment lock-in period are all calculated from the disbursement date in days. Use this calculator to verify these dates against your loan agreement so you are never caught by a date that is a day earlier than expected.

Date Difference Calculation

Difference in days = (End date - Start date) in milliseconds / 86,400,000

Weeks = Days / 7 Β· Months β‰ˆ Days / 30.44 (average) Β· For exact years/months/days: decompose iteratively accounting for actual calendar Β· Accounts for leap years (Feb 29) automatically

Worked Example

Loan disbursed on 5 March 2024, first EMI on 5 April 2024, 240 EMIs

Start date:5 March 2024
End date (loan close):5 March 2044

Total days: 7,306 Β· Weeks: 1,043.7 Β· Months: 240 Β· Years: 20 (5 leap years included)

Tips & Insights

  • 1

    Long-term capital gains (LTCG) on equity shares and equity mutual funds require a holding period of more than 365 calendar days under Section 112A of the Income Tax Act. Holding for exactly 365 days still qualifies as short-term (15% STCG tax). Use this calculator to verify the date your holding crosses 366 days before placing a sell order to avoid paying a higher tax rate on gains that could have qualified for the 10% LTCG rate.

  • 2

    ELSS (Equity Linked Savings Scheme) units have a mandatory 3-year lock-in from the date of each individual SIP installment. For an SIP running 36 months, each monthly tranche unlocks on a different date - the first installment unlocks earliest, the last tranche unlocks 3 years after its purchase date. Calculate the exact unlock date for each tranche to build an accurate withdrawal plan for your tax-saving investments.

  • 3

    The Limitation Act 1963 gives 3 years to file a civil suit from the date the cause of action arises for most contract and tort claims. Under Section 5, courts may condone delay for sufficient cause, but the window is narrow. Calculate your limitation window precisely from key dates in any dispute - notice of breach, delivery failure, or last payment - to ensure your legal options remain open and you do not miss the filing window.

  • 4

    Employment notice periods in India are typically stated in calendar days in the appointment letter. A 90-day notice starting 15 January ends on 14 April, not 15 April. Your employer's payroll system will use the same calendar-day count for full and final settlement calculations. Verify the exact exit date to avoid either overpaying or underpaying your notice period buyout.

  • 5

    Loan moratoriums granted by banks are stated in calendar months (e.g., 3 months from EMI start). But interest accrues daily during the moratorium period - the exact number of days between your moratorium start and end directly affects the total interest capitalized. Calculate this precisely rather than estimating 90 days for 3 months, since March and August differ by 3 days and the actual interest cost reflects the real day count.

  • 6

    Fixed deposits auto-renew on their maturity date if not redeemed. Most banks give a 30-day window after maturity for premature redemption without penalty. Calculate the exact maturity date from the deposit start date and set a calendar reminder 1 week before to decide whether to redeem or let it roll over at the prevailing rate, giving you adequate time to compare alternatives.

  • 7

    For project management in agile sprints (typically 2 weeks = 10 working days), the date difference tool shows the total calendar span. Cross-reference with the working days calculator to separate actual sprint capacity from weekends. A 3-sprint roadmap looks different if it starts just before a holiday cluster compared to starting in a clean calendar period - the calendar-day view makes those clusters visible.

Why this matters for you

Exact date arithmetic separates informed financial decisions from guesswork. India's tax code uses precise calendar-day thresholds: equity held for 365 days or less is taxed at 15% as short-term capital gains, while 366 days and beyond qualifies for the 10% long-term rate. On a gain of Rs. 5 lakh, that single-day difference costs Rs. 25,000 in extra tax. Loan prepayment lock-in periods, ELSS redemption windows, and NPS partial withdrawal rules all work the same way - off by a day means off by a year in some cases.

Legal rights in India often have hard expiry dates. The Limitation Act prescribes time windows for filing suits that are measured in calendar days from the date the cause of action arose. Once you miss the limitation window, a court can dismiss your case without considering its merits, regardless of how strong your claim is. For employment disputes, consumer complaints, cheque bounce cases, and insurance claim rejections, knowing the exact number of days elapsed is not administrative detail - it is a prerequisite for accessing justice.

In project and business planning, imprecise date math compounds into visible delivery failures. A vendor contract promising 60 working days actually means 12-14 calendar weeks depending on holidays, and the two parties may be counting from different reference dates. An onboarding period of 'three months' can be 90, 91, or 92 days depending on which months are involved. Using an exact date difference calculator for all contract milestone dates removes the interpretation ambiguity that causes invoice disputes and SLA breaches.

Related Calculators

Frequently Asked Questions

How many days between two dates?+

The calculator subtracts the earlier date from the later date as timestamps in milliseconds, then divides by 86,400,000 (milliseconds per day) to get an exact count. This gives a precise result regardless of month lengths or leap years. The result is also converted into weeks, approximate months, and a decomposed years-months-days breakdown. All results update instantly as you change either date. A positive result means the end date is after the start date; a negative result (shown in absolute terms) means the end date is before the start date. The calculator correctly handles ranges spanning multiple decades, including all leap years within the range.

Can I calculate dates across years?+

Yes, the calculator handles any two calendar dates without upper or lower limits. Ranges spanning 1 year, 10 years, or 50 years are all calculated correctly. Leap years - years divisible by 4, with century-year exceptions - are automatically detected and included in the day count when the range spans 29 February. For example, 1 January 2020 to 1 January 2025 includes leap years 2020 and 2024, totalling 1,827 days instead of 1,825 for two regular years. This precision matters for long-duration financial instruments like 20-year home loans, 15-year PPF tenures, and multi-decade pension calculations.

What is the difference between total days and years/months/days?+

Total days is the absolute count of calendar days between the two dates - a single integer that is unambiguous and exact. The years/months/days breakdown expresses the same span in a human-readable format: for example, 400 days = 1 year, 1 month, and approximately 4-5 days depending on which months are involved. The breakdown is useful for age-like descriptions, while total days is better for financial and legal calculations that use day thresholds. An important nuance: months in the breakdown have variable lengths, so '1 month' represents the actual calendar span from the start date's day to the same day the following month. Total days is always exact; the months-based breakdown involves calendar variation.

Can I use it to calculate age between two specific dates?+

Yes - this is one of the most common uses. Set the start date to a date of birth and the end date to any target date to get the exact age at that point in time. The years/months/days decomposition gives the age in the format most official forms require. This works for past ages (how old was someone in 1947?), present ages, and future ages (how old will I be when my FD matures?). For calculating your current age from today's date with additional context like total days lived, zodiac sign, and next birthday countdown, the dedicated Age Calculator provides the same result with a richer output.

How do I calculate the number of working days between two dates?+

Working days = Total calendar days - Weekends - Public holidays. For example, from 1 January to 31 January 2026 (31 calendar days): subtract 8 weekend days = 23 days, then subtract Republic Day (Jan 26) = 22 working days. Use our Working Days Calculator for automatic computation including Indian public holidays. For SLA and contract purposes, always clarify whether business days include or exclude bank holidays - definitions vary by industry and contract.

Can I include or exclude the start and end dates from the count?+

The standard date difference calculation counts the number of days between two dates, not including the start date but including the end date (or equivalently, counting the gap between midnight of the start date and midnight of the end date). For example, from January 1 to January 3 is 2 days by this convention. Some legal and financial contexts use different conventions: inclusive counting (both start and end dates counted, giving 3 days for the example above) or exclusive counting (neither day counted, giving 1 day). In India, loan interest accrual typically uses the convention where the disbursement date is excluded but the repayment date is included. Legal limitation periods often use inclusive counting. When using date differences for official purposes, always confirm which convention the relevant institution or law uses. This calculator uses the standard mathematical convention (endpoint minus start point in days).

How do I calculate the number of months between two dates precisely?+

Exact month counting is less straightforward than day counting because months have different lengths. The standard method is: count complete calendar months from the start date's day to the same calendar day in subsequent months. From March 15 to July 15 is exactly 4 months. From March 15 to July 20 is 4 months and 5 days. From January 31 to February 28 is 0 months and 28 days (or 1 month using the end-of-month convention). This calculator uses the accurate calendar-aware method that counts actual completed months and remaining days, which is the same method used in age calculations and most contract duration calculations. For financial instruments like EMI schedules, months are counted by calendar month rather than 30-day periods, which is why your EMI due dates fall on the same calendar day each month rather than exactly 30 days apart.