Search code examples
excelalgorithmmathsymbolic-mathalgebra

Making a math equation for overtime


right now i have an employee who is getting 500 dollars overtime when he works 40 hours and his basic salary is 3500 dollars, i need to have an equation to calculate the amount of dollars when he work any other amount of hours different salary or with basic salary 4000 dollars. Thanks


Solution

  • You are leaving out a few details but here is what I came up with for what I think you are looking for.

    =IF(C2>40,A2+B2*(C2-40),A2)
    

    enter image description here