Date Ranges & Sets

Date Range Union Calculator

Combine ranges without double-counting dates.

--
days

--

Business Days
0
Weekend Days
0
Weeks
0.0
Total Hours
0 h

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. 1

    Enter all ranges

    Add 2 or more date ranges in any order.

  2. 2

    Sort by start date

    The calculator orders the ranges.

  3. 3

    Merge overlaps

    A range starting on or before the day after the current merged end joins that merged range.

  4. 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.

RangesRaw SumUnion DaysDouble-Counted
Jan 1–10, Jan 5–15, Jan 20–2527216
Mar 1–31, Mar 15–Apr 15634617
Jun 1–10, Jun 11–2020200
Jul 1–31, Jul 10–20423111
Sep 1–5, Sep 3–7, Sep 6–1015105

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 →