Calculations now update when the pay-rate select box changes
Cleaned up code

indents
spaces