Click here to Skip to main content
15,908,906 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hw do I calculate compound interest in a function procedure
This is the code that I used but it doesn't work:
Private FunctionCalcInvestBalance(ByRef amount As Double, _
ByRef years As Double, _
ByRef rate As Double) As Double

Dim balance As Double
Balance = amount * (1 + rate) ^ years
Return balance
End function
Posted
Comments
dimpledevani 25-Jun-12 5:43am    
Didnt understood your question. Doesnt work means what??
Terence Jonkers 25-Jun-12 6:49am    
When I call the function, it doesn't display the balance

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900