- round: documentation ( source)
- mktime: documentation ( source)
<?php
$basePremium='Refer';
// update the end time of the discount period below when going live
if (mktime() < 1453726799000 ) { // discount by 8.5% for the 2 months after going live, 1453726799000 = 25/01/2016 23:59:59 AEST
$basePremium=round($basePremium * 0.915);
echo $basePremium + "<br><br>";
echo $basePremium * 0.915 + "<br><br>";
}
if ($basePremium == 'Refer') {
echo "wtf";
} else {
echo "...";
}
?>