I am having a little bit of trouble calculating the balance in my code.
In this program (balance = balance * (1 + interestRate)
. The thing is that we are
I wasn't allowed to edit Zafs answer to include the extra line, so here is my take. The important point being that the initialization of finalBalance
is outside of the for-loop.
finalBalance = initialBalanceSavings + initialBalanceCorporate
For theYear = 2013 To 2016
subtotal = finalBalance * (1 + interestRate)
finalBalance = subTotal
Next