Date Range Union Calculator
Combine ranges without double-counting dates.
--
How Date Range Union Calculator Works?
The Date Range Union Calculator works by sorting ranges by start date, merging any that overlap or touch, and summing the merged lengths.
- 1
Enter all ranges
Add 2 or more date ranges in any order.
- 2
Sort by start date
The calculator orders the ranges.
- 3
Merge overlaps
A range starting on or before the day after the current merged end joins that merged range.
- 4
Sum the merged ranges
The result shows the combined periods and total days, with no date counted twice.
Date Range Union Calculator Formula
The Date Range Union formula is Union Days = Σ Days(merged range), after merging overlapping and adjacent ranges.
Sort ranges by start Merge while Start(next) ≤ End(current) + 1 Union Days = Σ (End − Start + 1) of merged ranges
- + 1:
- Adjacent ranges (end and next start on consecutive days) merge
Example: Ranges Jan 1, 2026–Jan 10, 2026, Jan 5, 2026–Jan 15, 2026 and Jan 20, 2026–Jan 25, 2026 merge into 2 periods: Jan 1, 2026–Jan 15, 2026 (15 days) and Jan 20, 2026–Jan 25, 2026 (6 days). Union = 21 days, not the 27-day raw sum.
Date Range Union Calculator Conversion Table
The table shows raw sums and union totals for 5 sets of ranges.
| Ranges | Raw Sum | Union Days | Double-Counted |
|---|---|---|---|
| Jan 1–10, Jan 5–15, Jan 20–25 | 27 | 21 | 6 |
| Mar 1–31, Mar 15–Apr 15 | 63 | 46 | 17 |
| Jun 1–10, Jun 11–20 | 20 | 20 | 0 |
| Jul 1–31, Jul 10–20 | 42 | 31 | 11 |
| Sep 1–5, Sep 3–7, Sep 6–10 | 15 | 10 | 5 |
What is Date Range Union Calculator?
A Date Range Union Calculator is a tool that combines several date ranges into a single set of dates without double counting.
Adding range lengths overstates the total when ranges overlap. The union counts each date once.
Adjacent ranges such as June 1–10 and June 11–20 merge into 1 continuous range of 20 days.
What are the uses of Date Range Union Calculator?
There are 5 main uses of the Date Range Union Calculator: travel day limits, employment history, coverage totals, leave records and project timelines.
-
Travel day limits
Travelers total days abroad across overlapping trips.
-
Employment history
Applicants total employment from overlapping jobs.
-
Coverage totals
Insurers total covered days from overlapping policies.
-
Leave records
HR teams total leave entered as overlapping requests.
-
Project timelines
Managers total active days across parallel tasks.
Related Date Ranges & Sets Tools
View All 141 Tools →Date Range Comparison Calculator
Compare the lengths of two date ranges.
Date Range Overlap Calculator
Find dates shared by two intervals.
Multiple Date Range Intersection Calculator
Find dates common to all supplied intervals.
Unique Days Counter
Count distinct days across overlapping intervals.
Date Range Gap Calculator
Find uncovered days between supplied intervals.
Date Range Exclusion Calculator
Remove selected dates or intervals from a range.