By Iqbal Hussain, Founder and calculator developer · Formulas checked against worked examples · Last updated
Unique Hours Calculator
Merge overlapping entries before totaling time.
How Unique Hours Calculator Works?
The Unique Hours Calculator works by sorting time entries by start time, merging any entries that overlap, and totaling the merged intervals.
- 1
Paste time entries
Paste intervals, for example 9:00–11:00, 10:30–12:00, and 13:00–14:00.
- 2
Merge overlaps
9:00–11:00 and 10:30–12:00 merge into 9:00–12:00.
- 3
Read unique hours
Unique hours = 3 + 1 = 4 hours; a simple sum gives 4.5 hours.
Unique Hours Calculator Formula
The Unique Hours formula is Unique Hours = total length of the union of all intervals.
- Iᵢ: time interval i.
- |…|: length in hours.
- Overlap: hours counted more than once in a simple sum.
Example: 8:00–12:00, 11:00–13:00, 12:30–15:00, and 16:00–17:00 merge into 8:00–15:00 and 16:00–17:00, so unique hours = 8 versus a simple sum of 9.5.
Unique Hours Calculator Conversion Table
The Unique Hours conversion table compares simple sums with unique totals for 6 entry sets.
| Entries | Simple Sum | Merged Intervals | Unique Hours | Overlap |
|---|---|---|---|---|
| 9–11, 13–14 | 3.0 | 9–11, 13–14 | 3.0 | 0.0 |
| 9–11, 10:30–12, 13–14 | 4.5 | 9–12, 13–14 | 4.0 | 0.5 |
| 8–12, 11–13, 12:30–15, 16–17 | 9.5 | 8–15, 16–17 | 8.0 | 1.5 |
| 10–12, 10–12 | 4.0 | 10–12 | 2.0 | 2.0 |
| 9–17, 12–13 | 9.0 | 9–17 | 8.0 | 1.0 |
| 14–16, 15–18, 17–19 | 7.0 | 14–19 | 5.0 | 2.0 |
What is Unique Hours Calculator?
The Unique Hours Calculator is a deduplication tool that merges overlapping entries before totaling time, so no minute counts twice.
Overlaps appear when 2 timers run at once or when entries from different apps are combined. The Unique Hours Calculator counts each real minute once, so 9:00–17:00 plus a 12:00–13:00 meeting entry totals 8 hours, not 9.
What are the uses of Unique Hours Calculator?
There are 5 main uses of the Unique Hours Calculator, including timer overlap cleanup, combined app exports, and presence time.
-
Timer overlap cleanup
Freelancers remove 1.5 hours of overlap from 2 running timers.
-
Combined app exports
Teams merge entries from 2 tracking tools.
-
Presence time
Facilities measure unique hours a room was occupied by any group.
-
Machine usage
Engineers count hours at least 1 machine was running.
-
Support coverage
Managers count hours at least 1 agent was online.
Unique Hours Calculator FAQ
How do I use the Unique Hours Calculator?
1. Paste time entries: Paste intervals, for example 9:00–11:00, 10:30–12:00, and 13:00–14:00. 2. Merge overlaps: 9:00–11:00 and 10:30–12:00 merge into 9:00–12:00. 3. Read unique hours: Unique hours = 3 + 1 = 4 hours; a simple sum gives 4.5 hours.
What formula does the Unique Hours Calculator use?
The Unique Hours formula is Unique Hours = total length of the union of all intervals. In short: Unique = |I₁ ∪ I₂ ∪ … ∪ Iₙ|; Overlap = Σ |Iᵢ| − Unique.
Can you show a worked example?
8:00–12:00, 11:00–13:00, 12:30–15:00, and 16:00–17:00 merge into 8:00–15:00 and 16:00–17:00, so unique hours = 8 versus a simple sum of 9.5.