calculate Hours on Categories in Payroll