The system does not store the leave balance; it calculates it each time. The formula:
Available = entitled + carried forward + adjustment − approved days − encashed − expired
| Formula part | Description |
|---|---|
| Entitled | The number of days the employee is entitled to this period. Usually the leave type’s "days per year". |
| Carried forward | Unused days from last year moved into this year. The carry cap is controlled by "max carry forward" on the leave type; the excess is recorded under "expired". |
| Adjustment | A manual correction by HR. Can be positive (a few bonus leave days) or negative (fixing a mistake). |
| Approved days | The total of leave days that have been approved. Pending requests are not included. |
| Encashed | Unused leave days the employee took the cash equivalent of instead of using. These are deducted from the balance because the employee cannot both take the money and take the leave. Only possible for "encashable" leave types. |
| Expired | Days that were lost — either not carried because of the carry cap, or carried but not used within the allowed window. |
| Pending | This is not deducted from the balance. Requests not yet approved are shown separately so the employee knows how much they have in progress. |