A salary is a form of payment from an employer to an employee, which may be specified in an employment contract. It is contrasted with piece wages, where each job, hour, or other unit is paid separately, rather than on a periodic basis. From the point of view of running a business, salary can also be viewed as the cost of acquiring and retaining human resources for running operations, and is then termed personnel expense or salary expense. In accounting, salaries are recorded on payroll accounts.