Creating a new Public Holiday seems to be only the first part of your requirement since you mention that it also involves a Public Holiday Quota.
How do you generate that Public Holiday Quota? Through a table or through a PCR?
If the new Public Holiday has a Public Holiday Class that is different from the other Public Holidays, then you should be able to use that information in a PCR.
Example :
- If "today" the Public Holiday Class = 0, nothing happens because it's not a PH
- If "today" the Public Holiday Class = 1, the Public Holiday Entitlement = DWS
- If "today" the Public Holiday Class = 4, the Public Holiday Entitlement = DWS
So a Public Holiday with PHC = 7 will have an entitlement if it falls on a weekday (DWS = 7) but no entitlement if it fall on a weekend (DWS = 0).