mpoincare
May 17th, 2004, 10:16 PM
I am implementing a payroll application. I need to know how to calculate the amount of money to pay someone for the minutes he works for. For instance if the person works for 8 hours and 35 minutes, and is getting paid $7.50 per hour, how do I calculate the amount of money for the 35 minutes. Muliplying 7.5*0.35=2.62 wich is not true. In fact the amount to be paid should be $3.75 for the 35 minutes. I notice that multiply 7.5*0.5=$3.75. Any help with code snippet would be welcome!