How to include holidays which are marked or present by employees in payment days

how to include holidays which are marked or present by employees in payment days

i checked both the checkboxes so when a employee is present on holiday it should be considered as payment day but it is not happening
when first checkbox is checked then holidays are being considered as payment days but the second checkbox is not working properly
is this a bug? or what might be the issue?