You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
364 B
PHP

<?php
$one = $_GET['price'];
$three_d = $_GET['three'];
$six_d = $_GET['six'];
$twelve_d = $_GET['twelve'];
$three = ($one * 3) * ((100 - $three_d) / 100);
$six = ($one * 6) * ((100 - $six_d) / 100);
$twelve = ($one * 12) * ((100 - $twelve_d) / 100);
echo("
1 month: \${$one}<br>
3 months: \${$three}<br>
6 months: \${$six}<br>
12 months: \${$twelve}<br>
");
?>