Date Calculator

Calculate exact days, weeks, months, and years between two dates. Add or subtract days from any starting date to find future deadlines, business days, and milestones.

Date Calculator Inputs

Gregorian
Total Calendar Duration
30 Days
1m 0d

Business Days

20 Days

Weekend Days

10 Days

Full Weeks

4w 2d

Total Hours

720 hrs

Alternative Elapsed Units

Minutes43,200
Seconds2,592,000
Year Fraction8.2%
8h Workdays20 Days

Understanding Date Differences and Calendar Mathematics

Calculating exact calendar durations and working day counts is fundamental for contract administration, invoice settlement (e.g. Net 30/60), project Gantt timelines, and statutory deadlines. Modern civil scheduling relies upon the Gregorian calendar, which balances orbital astronomical variations using leap years and irregular month lengths.

1. Calendar Day Difference Equation
Total Days (Δt)=
Unix Timestamp₂ (ms) − Unix Timestamp₁ (ms)86,400,000 ms / day (24 × 60 × 60 × 1,000)
[ + 1 if inclusive ]
2. Business Day & Week Decomposition Formula
Full Weeks & Remaining Days
• Full Weeks = ⌊ Total Days ÷ 7 ⌋
• Remaining Days = Total Days mod 7
Business Day Partition
• Business Days = (Full Weeks × 5) + Weekday Remainder
• Weekend Days = (Full Weeks × 2) + Weekend Remainder
Step-by-Step Calculation Breakdown
Step 1: Input Dates (March 1, 2026 to April 15, 2026)
Start Date: 2026-03-01 (Sunday) | End Date: 2026-04-15 (Wednesday)
Time Delta = 45 Calendar Days (6 Full Weeks + 3 Days)
Step 2: Partition Business Days vs Weekends
6 Weeks × 5 Working Days = 30 Business Days + 3 Remainder Weekdays = 33 Business Days
Weekend Days = 12 Weekend Days (Saturdays & Sundays)
Step 3: Verification & Total Elapsed Time
Duration=45 Total Days (1 Month 14 Days / 1,080 Hours)

Month Lengths & Calendar Structure Reference

Month CategoryDaysMonths IncludedAnnual Total
31-Day Months31 DaysJan, Mar, May, Jul, Aug, Oct, Dec (7 months)217 days
30-Day Months30 DaysApr, Jun, Sep, Nov (4 months)120 days
February (Standard)28 DaysCommon Year cycle (365 days total)28 days
February (Leap Year)29 DaysEvery 4th year (366 days total)29 days

Frequently Asked Questions

How do I calculate the number of days between two dates?
Enter your start date and end date in the calculator above. The tool automatically calculates the total number of days between them, including years, months, weeks, and remaining days. It also breaks down working business days (Monday–Friday) versus weekend days.
How are business days calculated?
Business days are calculated by counting Monday through Friday and excluding Saturdays and Sundays. Note that standard business day calculations do not automatically subtract regional statutory holidays, which vary by jurisdiction.
Does the calculator account for leap years?
Yes. The calculator uses the astronomical Gregorian calendar rules where years divisible by 4 (and century years divisible by 400) have 29 days in February, adjusting day totals automatically.
What is the difference between inclusive and exclusive counting?
Exclusive counting (default) calculates the elapsed duration between dates without counting the starting calendar day itself. Inclusive counting includes both the start and end dates (adding 1 full calendar day).
How do I calculate a date X days from today?
Switch to the 'Add / Subtract Days' mode. Enter your starting date, choose whether to add or subtract, and enter the number of days (e.g., 30, 60, or 90 days for Net-30 payment or warranty tracking).

Related Tools