At the end of each pay period, businesses need to pay their employees.
A payroll system uses a computer to calculate the wages of each employee, print out pay-slips and record the information for accounting purposes.
Input may come from a database of employees details (salaries, pay rates, bonus rates, etc.) or timesheets.
If employees are paid hourly, timesheets are used to input and validate the hours worked including any overtime (possibly using OMR or OCR techniques).
Validation: A range check could be used on the number of hours worked.