Date Difference Calculator
Calculate exact days, weeks, months, years between two dates.
Common uses for date difference calculations
- Project planning: How many working days until the deadline?
- Age calculation: Exact age in years, months, and days.
- Contracts & notices: Count notice period days from a specific date.
- Finance: Calculate exact tenure for interest calculations.
- Events: Countdown to a wedding, exam, or product launch.
- HR: Calculate service length for gratuity or leave entitlement.
Date arithmetic gotchas
When counting days inclusively (e.g. from Jan 1 to Jan 3 is 3 days, not 2), add 1 to the difference. This matters for court-ordered notice periods and some contract terms that specify “inclusive of both dates.” This calculator shows exclusive day count (standard mathematical difference).
Legal and HR use cases that require exact day counts
Employment notice periods in India are legally defined in days — typically 30, 60, or 90 calendar days depending on the employment contract and industry. HR teams use a date calculator to verify the last working day given a resignation date, ensuring the count aligns with the contract. Gratuity eligibility under the Payment of Gratuity Act requires 5 continuous years of service — 1,825 days (or 1,826 in a leap-year span) — and the exact count determines whether a separating employee receives the gratuity payout. Landlords and tenants use it to count notice period days from the exact delivery date of a legal notice, not from the date printed on it.
Financial tenure calculations
Bank FD interest is accrued for the exact number of days held — most banks use actual/365 or actual/366 day-count conventions. Knowing the precise number of days between deposit date and maturity date helps verify whether the bank's displayed interest matches expectations. For RD tenures, the month count is straightforward, but the interest calculation uses the exact quarterly compounding dates — cross-checking with the day count catches rounding errors on short-tenure RDs. Mutual fund LTCG eligibility (12 months for equity funds) is determined by calendar days, not months — a purchase on May 13, 2024 achieves LTCG status on redemption on or after May 14, 2025, and missing by even one day shifts the gains into STCG taxed at 20%.
Project planning and event countdown
Product managers planning a 6-week sprint from a project kickoff date use the working-days count to exclude weekends and confirm the delivery date with the engineering team. Students appearing for UPSC, JEE, or CAT exams track the exact number of days remaining for preparation milestones. Event planners confirm venue booking lead times — most venues require a minimum of 30 or 60 days notice — by entering the event date and today to see whether the count clears the threshold.
Frequently asked questions
- How do I calculate the number of days between two dates?
- Subtract the earlier date from the later date in milliseconds and divide by 86,400,000 (ms per day). This tool does it instantly — just pick two dates and see total days, weeks, months, years, and working days all at once.
- What counts working day?
- Working days are Monday through Friday, excluding weekends. This calculator does not exclude public holidays (which vary by country and year). For a more precise business day count that excludes holidays, you would need a country-specific calendar.
- How is the years/months/days breakdown calculated?
- The calculator computes full calendar years first, then full calendar months remaining, then remaining days — accounting for variable month lengths. This is the same method used when calculating someone's exact age.
- Can I calculate how many days until a future event?
- Yes. Set the start date to today (click the Today button) and the end date to your event date. The result shows a countdown in days, with a highlighted banner showing working days remaining.
- How many days are in a year or month?
- A common year h days; a leap year h. The average Gregorian year is 365.2425 days. Calendar months vary: January/March/May/July/August/October/December have 31 days; April/June/September/November have 30 days; February h (or 29 in a leap year).
Related tools
- JSON Formatter, Validator & Repair Tool
Format, minify, validate, and repair JSON instantly in your browser. Sort keys alphabetically, auto-format on paste, download as file, escape/unescape strings — free, no sign-up, 100% client-side.
- QR Code Generator
Generate QR codes for URLs, text, Wi-Fi, and more. Download as PNG.
- Password Generator
Generate strong, random passwords with custom length and character sets.
- Base64 Encoder / Decoder
Encode text to Base64 or decode Base64 back to plain text.
- URL Encoder / Decoder
Encode or decode URLs and query strings with percent-encoding.