I need to work out how mutch pay an employee should resceive. I want to enter the hourly rate in a text box and when I click a button It should give me two answers. Example : Normal work hours is 9 hours and every employee has their own hourly rate. Mark's rate is 5 $. if a employee work overtime (more than 9 hours) they should get paid overtime (Hours over 9 * 1.5).
If I Mark work 10 hours I need two results.
Normal Pay = 45$
Overtime Pay = 7.5$
Please help me with it