Illinois paid time off payroll formuls

I am in Illinois and due to the new paid time off law, we need to accrue time off per employee hours worked.   Has anyone written a formula for this?