How is payroll tax calculated?
Starting from gross pay (basic salary plus allowances and bonus, minus unpaid leave deductions), pre-tax statutory deductions are applied first (like pension or social security), then the country's progressive income tax brackets are applied to what's left, then any post-tax rebates are subtracted to reach net pay.