function getresults() { var yearradiation; var sizem2; var totalpowerout; var houses; var totalpeakpowerout; var yeartotalpowerout; var coalsaved; var yearat30; var yearat40; var yearat50; var yearat60; // Solar radiation values based on Ausra Kimberlina solar thermal plant. 10 acres = 40460 m2. 25 MW steam. 5 MW Electricity. 3500 Homes. Location California 5.5 kWh/m2/day // At 5.5 kWh/m2/day solar radiation, 1 m2 creates 123 watts hours. At 1 kWh/m2/day solar radiation, 1 m2 creates 22.47 watts hours. //Steam to electricity efficiency 20%. Average 12 hours of daylight per day. //US coal cost per kW in 2008 was $0.0208. yearradiation = document.myForm.yearradiation.value; sizem2 = Math.round(document.myForm.sizem2.value); totalpeakpowerout = Math.round(22.47 * sizem2 * yearradiation / 1000); totalpowerout = Math.round(12 * 22.47 * sizem2 * yearradiation / 1000); yeartotalpowerout = Math.round(totalpowerout * 365 / 1000); coalsaved = Math.round(0.0208 * yeartotalpowerout * 1000); yearat30 = yeartotalpowerout * 30; yearat40 = yeartotalpowerout * 40; yearat50 = yeartotalpowerout * 50; yearat60 = yeartotalpowerout * 60; document.myForm.totalpeakpowerout.value = totalpeakpowerout; document.myForm.totalpowerout.value = totalpowerout; document.myForm.yeartotalpowerout.value = yeartotalpowerout; document.myForm.coalsaved.value = coalsaved; document.myForm.yearat30.value = yearat30; document.myForm.yearat40.value = yearat40; document.myForm.yearat50.value = yearat50; document.myForm.yearat60.value = yearat60; houses = Math.round(totalpowerout / 16); document.myForm.houses.value = houses; }