Payroll tax

Which legislation and regulation are applicable? How can you minimise the risk of retroactive levies?