If I have a contract with an employee where he earns 5$/hour up to 40 hours a week. But then, 7$/hour after the 40th hour. How could I make that command?
Ex.
the employee worked 46 hours this week
I'd like the command to perform the following equation = (46hrs - 40 hrs) 8 7$/ hr = 42$
Thank you your your help!