Vendion
    Staff & Scheduling

    Unsocial Hours Rules

    6 min read#14

    Unsocial hours supplements (OB in Swedish) compensate work during evenings, nights, weekends and public holidays. Vendion matches every worked minute against your rules and calculates the supplement automatically all the way into payroll data and payroll exports.

    Where the rules live

    Go to Personal ▸ Inställningar ▸ Lön (Staff ▸ Settings ▸ Pay) and scroll to the OB-regler section.

    The Lön sub-tab requires the edit-payroll permission. If you only have scheduling permission you will not see the rules — deliberately, since a changed rate affects everyone's pay.

    The four types

    Every rule has a type. The type decides which bucket the hours land in, and that bucket follows all the way into the payroll file — so it matters even when the amount is identical.

    TypeUsed for
    OB 1Ordinary evening, night and weekend supplement
    OB 2Extra supplement, for example the night supplement
    Helgdag (public holiday)Red days in the calendar
    Storhelg (major holiday)The most expensive days under the agreement

    Note that Saturday and Sunday are not a separate type. They are handled by ordinary OB 1 rules with the right weekdays. "Helgdag" means public holiday, not weekend.

    The preset rules and the fields you can change

    Pressing Återställ Visita/HRF-satser (restore Visita/HRF rates) loads the agreement's set. It looks like this (rates per Gröna riksavtalet Visita–HRF 2025–2027, effective 1 April 2026):

    RuleTimeDaysTypeSupplement
    OB mån–fre 20–0620:00–06:00Mon–FriOB 1SEK 27.59/h
    OB lördag 16–0616:00–06:00SaturdayOB 1SEK 27.59/h
    OB söndag06:00–06:00SundayOB 1SEK 27.59/h
    OB helgdag06:00–06:00Red daysHelgdagSEK 27.59/h
    OB afton 16–0616:00–06:00Midsummer's, Christmas and New Year's EveOB 1SEK 27.59/h
    Nattillägg 01–0601:00–06:00All daysOB 2SEK 24.31/h

    The eve rule is easy to miss. Midsummer's Eve, Christmas Eve and New Year's Eve are not public holidays, but the agreement counts them as Saturdays (s. 13.1) — hence the same window and rate as the Saturday rule. It has no weekday set, since those eves fall on different weekdays in different years.

    Restoring replaces all current rules, including custom rules, from the selected date. In the confirmation dialog enter Gäller från (valfritt), or leave it empty for today. An earlier date recalculates payroll that is not locked. Locked periods are protected and earlier rates remain as history. Check the date and your custom rules before clicking Återställ.

    How it is calculated — the highest rate wins

    This is the most important rule to understand, and it is not obvious:

    Every worked minute gets a single ordinary supplement — the highest rate that covers that minute. Supplements do not stack. The exception is rules marked as Tillägg (supplement); the preset night supplement is one. Those are added on top of the ordinary rate.

    Without that rule a Sunday that is also a public holiday would pay twice. A shift covered by both a Sunday rule and a public-holiday rule therefore gets one ordinary supplement for the same minute.

    Two more things that affect the outcome:

    • Supplements are calculated from worked time after breaks. The rounding below can then increase the compensated supplement hours to the next half hour.
    • Rounding to the half hour. The agreement says every started half hour is paid as a full half hour (ss. 13.1–13.2). Vendion therefore rounds up to the nearest half hour per shift and per supplement type — not per minute and not per month. 20 minutes becomes 30; 35 minutes becomes 60. The setting is called Avrunda OB till halvtimmar and sits under Personal ▸ Inställningar ▸ Lön ▸ OB-regler. It is on by default for everyone on the Visita/HRF agreement.
    • A night shift running into a public holiday gets the holiday rate — but only from 06:00. The holiday window is 06:00–06:00, not midnight to midnight. A shift from Thursday 23:00 to Good Friday 07:00 therefore gets the holiday supplement only for 06:00–07:00; the hours 00:00–06:00 are carried by the Mon–Fri rule. The kronor are the same (both SEK 27.59/h), but the hours land in different buckets and therefore on different codes in the payroll export.

    Creating your own rule:

    1. Scroll to the empty row at the bottom of OB-regler
    2. Fill in:
      • Namn (name) — what you recognise the rule by
      • OB-typ (type) — OB 1, OB 2, Helgdag or Storhelg
      • Starttid and sluttid (start and end time) — if it passes midnight it carries into the next day
      • Veckodagar (weekdays)
      • Belopp per timme (amount per hour) in SEK
      • Gäller helgdag (applies on public holidays) — tick if the rule should cover red days
      • Tillägg (supplement) — tick if the rate should stack on top of the ordinary supplement instead of replacing it
    3. Click Lägg till

    Vendion works with amounts per hour, not percentages.

    Changing a rate without rewriting history

    When you change the amount on a rule, past payroll is not recalculated. The old rate is closed as of yesterday and the new one applies from today. Payroll already calculated keeps its amounts.

    The same applies when you delete a rule: it is closed going forward instead of disappearing from history. An already locked payroll period is never affected.

    You can only make one change per rule per day. Correcting a rate you set the same day overwrites the latest version instead of creating two.

    Major holiday pay is something else

    Payroll data has a column called Storhelg. It is not an OB rule but the agreement's major holiday compensation: 100 % of the hourly wage between 06:00 and 06:00.

    With the current calculation rule it applies only when Christmas Eve or New Year's Eve falls on a Saturday or Sunday. That means it is not triggered at all during 2026 or 2027 — the next occurrence is 24 December 2028. If you see zero there, it is almost certainly correct.

    Where supplements appear

    In Personal ▸ Löner (Staff ▸ Payroll) every employee has the columns OB1 and OB2. Under OB2 you see the sub-rows Röd dag (public holiday) and Storhelg, which are separate buckets. Major holiday pay has its own column.

    Never add OB1 and OB2 to get a total — public holiday and major holiday hours sit outside those two. Use the total shown in the table.

    Click a row to see day by day how the supplements arose.

    This feature is part of Vendion Staff.

    Curious how it looks in practice? Read more about the product or book a short demo.

    Was this article helpful?