Unique Active Time Calculator
Merge overlapping intervals before totaling time.
How Unique Active Time Calculator Works?
The Unique Active Time Calculator works by merging overlapping intervals into continuous blocks before totaling, so time covered by 2 intervals counts only once.
-
1. Sort the intervals
Order intervals by start time, such as 09:00–10:30, 10:00–11:00, 13:00–14:00.
-
2. Merge overlaps
Combine 09:00–10:30 and 10:00–11:00 into 09:00–11:00.
-
3. Total the merged blocks
2:00 + 1:00 = 3h 0m of unique active time.
-
4. Compare with the raw sum
Enter raw durations (90, 60, 60) in the widget: Total Recorded shows 3h 30m, which double-counts 30 minutes.
Unique Active Time Calculator Formula
The Unique Active Time Calculator formula is unique time = Σ lengths of merged intervals, where intervals merge whenever next start ≤ current end.
- Sort by start
- If startᵢ₊₁ ≤ current end: current end = max(current end, endᵢ₊₁)
- Else close the block and start a new one
- Unique time = Σ block lengths; double-counted = raw sum − unique
Example: 09:00–10:30, 10:00–11:00, and 13:00–14:00 merge into 09:00–11:00 and 13:00–14:00, so unique active time is 3h 0m against a raw sum of 3h 30m.
Unique Active Time Calculator Conversion Table
The Unique Active Time Calculator conversion table compares raw interval sums with merged unique time.
| Intervals | Raw Sum | Merged Blocks | Unique Time |
|---|---|---|---|
| 09:00–10:30, 10:00–11:00 | 2:30 | 09:00–11:00 | 2:00 |
| 08:00–12:00, 09:00–10:00 | 5:00 | 08:00–12:00 | 4:00 |
| 13:00–14:00, 14:00–15:00 | 2:00 | 13:00–15:00 | 2:00 |
| 10:00–11:00, 10:30–11:30, 11:15–12:00 | 2:45 | 10:00–12:00 | 2:00 |
| 07:00–08:00, 09:00–10:00 | 2:00 | 2 blocks | 2:00 |
What is Unique Active Time Calculator?
A Unique Active Time Calculator is a tool that totals active time after merging overlapping intervals so no minute counts twice.
Raw sums overstate activity whenever sessions overlap. A user with 2 browser tabs open on the same site from 10:00 to 11:00 generated 2 hours of session time but only 1 hour of unique active time.
The merge step is standard in interval scheduling and appears in coding interviews as the ‘merge intervals’ problem.
What are the uses of Unique Active Time Calculator?
There are 5 main uses of the Unique Active Time Calculator, including analytics deduplication, time-tracking cleanup, and machine usage.
Analytics deduplication
Analysts remove overlap from multi-tab sessions.
Time-tracking cleanup
Managers merge overlapping timer entries before billing.
Machine usage
Engineers merge overlapping job logs on 1 machine.
Coverage reports
Ops teams measure total covered hours across overlapping shifts.
Screen time
Users merge app sessions into true device time.