function monthlyamount($rate,$discount="no") { $amountraw = ((($rate+.17)*52)/12); if ($discount=="yes") { $amountraw = ($amountraw*.95); } $amountformat = number_format($amountraw,2); return $amountformat; } ?>