Your in-house cost
It starts with the time cost. It multiplies the hours you spend on each pay run by your pay runs per year, then multiplies that by the hourly cost of the person doing the work. It adds your payroll software and any other yearly costs, like filing fees, year-end forms, or penalties.