Just a thought... have you thought about reversing the logic...
If the employee is present for more then 16 days (28 days-12 days) then you give them the quota. if the attendance is less then 16 days, then you do not give them quota.
Just a thought... have you thought about reversing the logic...
If the employee is present for more then 16 days (28 days-12 days) then you give them the quota. if the attendance is less then 16 days, then you do not give them quota.