Skip to content

Conditions and filters

Conditions and filters select the portions of worked time that qualify for an allowance. They are the same building blocks in both calculation types:

  • In a Weekly Registrations policy they are the conditions under When . All conditions in a group must hold, any group counts, and time that meets several groups is counted once. A policy without conditions counts everything.
  • In a Check in/out rule they are its filters. They are applied in sequence (AND), so each filter narrows what the previous one returned. A rule with no filters matches the entire input.

How filters work

Each filter receives a list of time ranges and returns a (possibly empty) list of time ranges that survive. Filters fall into a few broad families:

  • Day filters keep entire days based on the calendar (day of the week, holidays, …). Only these can limit a per-day counter.
  • Time-of-day filters keep the portion of each day inside a given clock window (e.g. 17:00–06:00).
  • Check-in filters look at the check-in itself: Present keeps the check-ins made under, or not under, chosen reasons. It is a Weekly Registrations condition; a Check in/out policy chooses its reasons with its trigger reasons instead.
  • Composite filters combine several rules at once for a specific national agreement — the Danish 17-06 inconvenience hours and Danish weekend supplement plugins fall into this category.

Available filters

Choosing the right filter

  • For “the portion of work that happens between two clock times”, use Time Interval.
  • For “the whole shift, when most of it falls inside a window”, use Time Interval Overlap.
  • For “any work on these specific weekdays”, use Day of Week, Weekday or Weekend.
  • For “any work on a public holiday”, use Holiday: it follows each employee’s holiday calendar. Use Danish Holidays or Christian Holidays when the agreement names its own fixed list of holidays.
  • For “not the time under this reason”, use Present with is not.
  • For Danish public-sector agreements, start with Danish Inconvenience Hours (17-06 rule) and Danish Weekend Supplement — they bundle all the special-day rules together and only need fine-tuning.
  • For “check-ins under a particular reason”, or worked time apart from absence, use Present; for “the shifts missed through an approved absence”, use Absent (in a Weekly Registrations policy that counts Planned and clock time).