(i) Example – Include Option (Calendar days)
Scenario:
Maximum allowed leave days: 2
Leave applied: Friday and Monday
Total leave counted: 4 days (Friday–Monday)
Saturday and Sunday fall in between

Outcome:
Since the leave duration exceeds the configured limit, Saturday and Sunday are counted as leave days.
In the above example, when Business Days is selected, only working days are counted. Saturday Sunday, and holidays are excluded, resulting in 2 leave days (Friday and Monday). In this case, weekends are not sandwiched.
(ii) Example – Exclude Option (Calendar days)
Scenario:
Maximum allowed leave days: 5
Leave applied: Friday and Tuesday
Total leave counted: 6 days (Friday–Tuesday)
Saturday and Sunday fall in between

Outcome:
Since the leave duration exceeds the configured limit, Saturday and Sunday are excluded from leave.
For Exclude Weekends configuration, weekends will be sandwiched if the leave duration is less than 5 days. For instance, leave applied from Friday to Monday is counted as 4 days. As this is below the 5-day limit, the weekends will be sandwiched.