Program to work out pay from hours worked