Re: Python and Functions

I found the problem.

The initial entry for hours is going to include the overtime. Therefore you subtract the overtime hours on the initial calculation:

rate*(hours-(hours-40))+(1.5*rate*(hours-40))

The first is just math if you have something along the lines of (x-(x-1)) you are calculating the result of subtracting the values, then subtracting x by that value. For example if x is 5, then 5-(5-1) would result in 1. in the same way, 45-(45-40) would subtract the overtime hours
from the calculation.

The second section is similar. 1.5*rate*(hours-40) simply subtracts a standard work week from the total result and allows for calculation of overtime accordingly.

URL: http://forum.audiogames.net/viewtopic.php?pid=173863#p173863

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
http://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Reply via email to