π€ 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!
