> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://support.haddock.app/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to create a rule that only applies to certain day types in haddock HR

In **haddock HR**, you can create rules that do not always apply, but **only when certain conditions are met**. A common case is wanting to **count hours worked on holidays separately**.

### Steps to create the rule

1. Go to **Settings** in the side menu.
2. Open **Rules**.
3. Click **Create new rule** (blue button at the top right).
4. Assign a name to the rule, for example: **Holiday hours**.
5. Under **Time type**, select **Work time**.
6. Under **Account:** select an account called **Holiday hours**
  (if it does not exist, it must be created first).
7. Under **Apply only to day types**, select **Fe (Holiday)**.
8. Save the rule.

![](https://storage.googleapis.com/helpdesk-haddock-images/haddock-hr/contracts-accounts-rules-and-transactions/how-to-create-a-rule-that-only-applies-to-certain-day-types-in-haddock-hr/images/01-steps-to-create-the-rule.png)

### Result

Whenever someone works on a day marked as a **holiday**, those hours will automatically be accumulated in the **Holiday hours** account, without affecting the rest of the worked hours.