Feb-12-2017, 02:37 PM
Your loop is completely wrong. You iterate over account balance which is $10000 so you will do 10000 loops eventually. Instead of years. You check for == to 0 but probability the balans got equal to 0 is minimal. This will fail. Check for <= 0.