//DO NOT REMOVE THIS COPYWRITE INFO! //Real Hourly Wage Calculator //By Daniel C. Peterson //Web Winder Website Services, 1997-2006 All Rights Reserved. //Distribution, editing or reselling of this script is strictyly prohibited //without expressed written permission from Daniel C. Peterson. //For commercial grade (professional) versions of this and many other //calculators, visit http://www.webwinder.com.
function compute(form) { form.MoIncome.value = (form.takehome.value * form.ppy.value / 12);
form.MoExp.value = (eval(form.carmiles.value * form.workdays.value * form.ppy.value / 12 * .32) + eval(form.othertran.value * form.workdays.value * form.ppy.value / 12) + eval(form.daycare.value * form.ppy.value /12) + eval(form.meals.value * form.workdays.value * form.ppy.value / 12 * .66) + eval(form.clothing.value));
form.MoProfit.value = eval(form.MoIncome.value) - eval(form.MoExp.value);
form.MoHours.value = (((eval(form.unpaidmin.value) + eval(form.commute.value) + eval(form.getready.value)) /60) + eval(form.paidhrs.value)) * eval(form.workdays.value) * eval(form.ppy.value) / 12;
form.RHW.value = eval(form.MoProfit.value) / eval(form.MoHours.value); }
function ClearForm(form) { form.takehome.value = ""; form.ppy.value = ""; form.workdays.value = ""; form.paidhrs.value = ""; form.unpaidmin.value = ""; form.commute.value = ""; form.getready.value = ""; form.carmiles.value = ""; form.othertran.value = ""; form.daycare.value = ""; form.meals.value = ""; form.clothing.value = ""; form.MoIncome.value = ""; form.MoExp.value = ""; form.MoProfit.value = ""; form.MoHours.value = ""; form.RHW.value = ""; }