Time Interval Overlap

The Time Interval Overlap filter passes through an entire shift if a configurable fraction of it falls inside a clock-time window. Unlike the basic Time Interval filter, which keeps only the overlapping minutes, this one is all-or-nothing per shift.

Time Interval Overlap filter configuration
Time Interval Overlap filter configuration

When to use

Use this filter when an agreement says “if at least half of the planned shift is after 14:00, pay the supplement on the entire shift” or “night-shift bonus applies to the full shift if it is mostly at night”. The threshold is configurable, so you can also express 60 %, 80 % etc.

For Danish public-sector agreements that already encode the half-shift rule, you can use the built-in Danish Weekend Supplement filter — it implements the Saturday “half of the shift after 14:00” rule out of the box.

Parameters

ParameterDescriptionRequired
FromStart of the window as HH:MM.Yes
ToEnd of the window as HH:MM. Use 24:00 for end of day. If To is earlier than From, the window crosses midnight.Yes
Minimum OverlapMinimum fraction of the shift duration that must fall inside the window, between 0.0 and 1.0. Example: 0.5 means at least 50 %.Yes

How it works

For each input shift the filter computes how many minutes of the shift fall inside the window, divides by the shift’s total duration and compares against Minimum Overlap:

  • If overlap / duration >= minimum_overlap, the whole shift is returned (not just the overlapping part).
  • Otherwise the shift is dropped.

This is fundamentally different from Time Interval, which always returns only the overlapping minutes regardless of how big a fraction of the shift they represent.

Example: Saturday afternoon shift

A typical clause says “Saturday work from 14:00 onwards qualifies for the weekend supplement, and so do earlier Saturday hours if at least half of the planned shift falls after 14:00.”

For a Saturday 10:00–18:00 shift:

  • The overlap with 14:00–24:00 is 4 hours.
  • The shift is 8 hours long.
  • 4 / 8 = 0.5, which is >= 0.5 → the entire 10:00–18:00 shift qualifies.

For a Saturday 10:00–15:00 shift:

  • The overlap is 1 hour.
  • The shift is 5 hours long.
  • 1 / 5 = 0.2, which is < 0.5 → the shift is dropped.

Combining with other filters

Place a Day of Week filter for Saturday before Time Interval Overlap, so that the overlap test only sees Saturday shifts. The filters are AND-combined inside a rule.