Payroll of the HR function involves the action of managing employee compensation, benefits, and any related tasks. Payroll activities include salary calculation, tax deduction, and making sure that it is in line with the employment laws and regulations. Also, payroll has to do with staff data management, timekeeping, and administering benefits.