Total Days Across Date Ranges Calculator
Add date ranges and merge overlaps.
How the Total Days Across Date Ranges Calculator Works
The Total Days Across Date Ranges Calculator adds several date ranges together and merges overlapping ranges so no calendar day is counted twice.
Enter each range
Enter the start and end date of every period, such as separate trips abroad.
Sort the ranges
The ranges are ordered by start date.
Merge overlaps
Ranges that overlap or touch are joined into 1 continuous range.
Sum the merged ranges
The inclusive day count of each merged range is added to give the total.
How the Count Is Calculated
The Total Days formula sums inclusive day counts after merging overlapping ranges.
Total days = Σ (End(k) − Start(k) + 1) for each merged range k
Overlap removed = Raw sum − Total days- Merged range k
- A continuous block of days formed by joining overlapping input ranges.
- Raw sum
- Sum of inclusive day counts before merging.
- Overlap removed
- Days that the raw sum counted more than once.
Example: 1–10 Mar (10 days), 8–20 Mar (13 days) and 1–5 Apr 2026 (5 days) give a raw sum of 28 days. 8, 9 and 10 March overlap, so the merged total is 25 days.
Worked Examples
The table shows the raw count and the merged count for the example ranges.
| Range | Inclusive days | Merged into |
|---|---|---|
| 1 Mar – 10 Mar 2026 | 10 | 1 Mar – 20 Mar (20 days) |
| 8 Mar – 20 Mar 2026 | 13 | 1 Mar – 20 Mar (20 days) |
| 1 Apr – 5 Apr 2026 | 5 | 1 Apr – 5 Apr (5 days) |
| Raw sum | 28 | |
| Merged total | 25 | 3 overlapping days removed |
What the Tool Measures
A Total Days Across Date Ranges Calculator is a tool that adds up several date ranges into one day total without double-counting shared days.
Simple addition overstates the total for overlapping ranges. Two trips logged as 1–10 March and 8–20 March cover 20 calendar days, not 23 days.
The calculator counts each range inclusively. A stay or leave period counts both its first and last day.
When to Use This Tool
There are 5 main uses of the Total Days Across Date Ranges Calculator, including tax residency and visa limits.
Tax residency tests
Expats total the days spent in a country against a 183-day threshold.
Schengen visa limits
Travelers total stays in the Schengen Area against the 90-days-in-180 rule.
Leave totals
HR teams total several leave periods for an employee within a year.
Equipment usage
Rental firms total the days an asset was booked across overlapping orders.
Insurance coverage
Policy holders total covered days across several policy periods.