The program needs to calculate any hours worked over 40 as overtime (time and a half), for example 1 hour over time = 1.5 hours * hourlywage. 2 hours overtime = 3 hours * hourlywage, 3 hours overtime = 4.5 hours * hourlywage. This only applies to any hours worked OVER 40. If the total hours is 40 or below, the wage is payed at the usual hourly rate = hourlywage * hoursworked.