> For the complete documentation index, see [llms.txt](https://lewe.gitbook.io/teamcal-neo/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lewe.gitbook.io/teamcal-neo/administration/absence-types/absence-allowance.md).

# Absence Allowance

## How Allowances work

There are two types of allowances.

| Type                   | Where to set                                                                                                      | Description                                                                                                                                                         |
| ---------------------- | ----------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Global allowance**   | [Absence Type Edit](/teamcal-neo/administration/absence-types/absence-type-edit.md) => Options                    | This is the global allowance for all users as long as they don’t have a personal allowance record. If the Global Allowance is 0, an unlimited allowance is assumed. |
| **Personal allowance** | [User Profile Edit](https://support.lewe.com/docs/teamcal-neo-manual/administration/users/user-edit/) => Absences | This is the personal allowance record for a single user. If it exists and the personal allowance is 0, it means 0 (no allowance).                                   |

## **Setting Global Allowance**

The Global Allowance value for an absence type can be set on the Absence Type Edit page, Options tag:

<figure><img src="/files/QZsfx0oYg5BHtPVlic5s" alt=""><figcaption></figcaption></figure>

## **Setting Personal Allowance**

The Personal Allowance value for an absence type can be set in the User Profile Edit, Absences tab:

<figure><img src="/files/NGMQvgu88A6NPLNRIoNi" alt=""><figcaption></figcaption></figure>

## **Allowance Check**

When a user enters an absence in his calendar, the following allowance checks are made:

1. If no personal allowance record exists
   1. If a positive global allowance is set, check against that allowance
   2. If global allowance is 0 (unlimited): Allow the absence
2. else (a personal allowance record exists)
   1. Check against the personal allowance (here, 0 means 0 => not allowed)

## **Personal Allowance Record**

A personal allowance record does not exist per default. It is created the first time the User Profile Edit is loaded by the following rules:

1. If the Global Allowance is 0 (unlimited)
   1. The Personal Allowance is set to 365 (which is “unlimited” considering that the value is counted per year)
2. If the Global Allowance is not zero
   1. The Personal Allowance is set to the value of the Global Allowance
