if (isset($_GET['submit']))
{
$old_ks = $_GET['old_ks'];
$old_wattage = $_GET['old_wattage'];
$new_ks = $_GET['new_ks'];
$el_price = $_GET['el_price'];
$old_wattage = ($old_ks * $old_wattage) / ’1000′;
$new_wattage = ($new_ks * ’36′) / ’1000′;
$energ = $old_wattage – $new_wattage;
$hour = $energ * $el_price;
$week = ’168′ * $energ * $el_price;
$month = ’720′ * $energ * $el_price;
$year = ’8760′ * $energ * $el_price;
echo ”
“; echo “”; echo “”;
echo ”
“;
echo ”
Nový stav”;
echo ”
“;
echo “”;
echo ”
“; echo “”;
echo ”
“.number_format($old_wattage,3).”kW”;
echo ”
∑ spotreby LED:”;
echo ”
“.number_format($new_wattage,3).”kW”;
echo “”;
echo ”
“; echo “”;
echo ”
Ušetrenie elektrickej energie:”;
echo ”
“.number_format($energ,3).”kW”;
echo “”;
echo ”
“; echo “”;
echo ”
“.number_format($hour,2).” €”;
echo ”
Ušetrenie € za 1 týždeň svietenia:”;
echo ”
“.number_format($week,2).” €”;
echo “”;
echo ”
“; echo “”;
echo ”
“.number_format($month,2).” €”;
echo ”
Ušetrenie € za 1 rok svietenia:”;
echo ”
“.number_format($year,2).” €”;echo “”;
echo ”
Povodný stav | |||
---|---|---|---|
∑ spotreby: | Ušetrenie € za 1 hodinu svietenia: | Ušetrenie € za 1 mesiac svietenia: |
“;
}
?>