<?php function calc_continuous_compound_interest($a, $r, $y) { return $a * pow(M_E, $r * $y); } echo calc_continuous_compound_interest(5000, .0325, 3), '<br />'; ?>