💤 How to calculate night work with rules
If you want to automate the calculation of night hours (for example, from 22:00 to 06:00) in haddock HR, you can do it easily using a rule. Here's how to configure it step by step:
✅ 1. Create the destination account
Before creating the rule, you need to have a hours-type account where the night hours will accumulate.
- Go to the left side menu and open Rules > Accounts.
- Click the “+” button at the top right.
- Create an account with:
- Name: for example, Night hours
- Account type: select Hours
Save the account and it will be available to use in your rule.
⚙️ 2. Create the night-work rule
- Go to Rules in the left side menu.
- Click the “+” button in the top right.
- Give it a name, for example: Night work.
🔧 3. Configure the transaction type
In the form:
- Under Transaction type, select Time type.
- Under Time type, choose Work time.
🕒 4. Define the time window
Specify the interval in which hours should count as night hours. For example:
- Start time: 22:00
- End time: 06:00
⏰ haddock HR will take care of counting the hours within that period, even if they cross over to another day.
📥 5. Link the destination account
In the Destination account field, select the account you created in step 1, for example: Night hours.
💾 6. Save the rule
Click Save. Your night-work rule is now ready to use.

👀 7. View it from planning
To see the applied night hours:
- Open the planning for a group.
- Set up a custom view.
- Add the column corresponding to the Night work rule.
Updated on: 23/04/2026
Thank you!
