-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocess2.php
51 lines (38 loc) · 1.3 KB
/
process2.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<!--
This file was produced for SESSA by tobie nortje
It is a mockup of a potential online calcualtor.
The copyright of the information herein lies with the author
contact the author at tobie.nortje@navitas.co.za
IT is meant for demonstration purposes and not for commercial intent
-->
<html>
<body>
<h1>Solar Water Heating Savings Calculator</h1>
<h2>Step 3 Congratulations! You have earned the following eco-credentials</h2>
<h2>These benefits are calculator over 10 years.</h2>
<?php
$monthenergy = $_GET['monthenergy'];
$WaterC = 1.26;
$CoalC = .5;
$AshC = 0.28;
$So2C = 8.70;
$NOX = 3.87;
$CO2 = 0.96;
$months = 120;
echo "<h3>Electricity saved per month</h3>";
echo round($monthenergy,2) . " kWh</br>";
echo "<h3>Water</h3>";
echo round($monthenergy * $WaterC * $months,2 ) . " litres</br>";
echo "<h3>Coal</h3>";
echo round($monthenergy * $CoalC * $months,2) . " kg</br>";
echo "<h3>Ash</h3>";
echo round($monthenergy * $AshC /1000 * $months,2) . " kg</br>";
echo "<h3>SO2</h3>";
echo round($monthenergy * $So2C /1000 * $months,2) . " kg</br>";
echo "<h3>NOX</h3>";
echo round($monthenergy * $NOX /1000 * $months,2). " kg</br>";
echo "<h3>CO2</h3>";
echo round($monthenergy * $CO2 * $months ,2). " kg</br>";
?>
</body>
</html>