Salary Based on Hours worked with different rates based on total hours worked

hello everyone, i have a problem in the payslip with salaries, we have employees who are paid based on hours worked and paid weekly…if they work for 45 hours a week they are paid at a rate of 81 per hour, else if hours worked are more than the 45 hours ie 50 hours then we do the following we subtract 50-45 = 5 and the 5 hours are paid at a different rate. how do i implement the above

Hi welcome to ERPNext

Threads like this give ideas and pointers Salary Component Formula's

Did you solve it