How can I make overtime count more in the base salary? For example, if someone works 45 hours per week with a normal hourly rate of €10, the overtime would be:
normal_hours = 40 hours worked_hours = 45 hours rate = 1.25 (125%)
overtime_hours = 45 - 40 = 5 hours overtime_amount = 5 * (1.25 - 1) * €10 = 5 * 0.25 * €10 = €12.5 so the base salary will be base_salary = fixed_salary + overtime_amount
I need help with this, please.