What are the functions of payroll?

Can you answer this question?