[FONT=Courier New]Sub InvestFV(Principal As Double, InterestRate As Double, CompoundYear As Int, NumberMonths As Int) As Double[/FONT]
[FONT=Courier New] Dim Growth As Double[/FONT]
[FONT=Courier New] Growth = Power(cE, NumberMonths / 12.0 * CompoundYear * Logarithm(1.0 + InterestRate / 100.0 / CompoundYear,cE))[/FONT]
[FONT=Courier New] Return (Principal * Growth)[/FONT]
[FONT=Courier New]End Sub[/FONT]