Hopefully I got this right 
Code:
finishLine()
investment = 100000
tBills = 0
tBillRate = .03
bonds = 0
corpBondRate = .06
stocks = 0
stocksRate = .09
for yearIncrement = 1 to 40
tBills = tBills + investment *1.03
yearIncrease = investment * tBillrate
if yearIncrement = 1 then
print investment, investmentReturn, tBillRate
bonds = bonds + investment *1.06
print investment, investmentReturn, corpBondRate
stocks = stocks + investment * 1.09
print investment, investmentReturn, stocksRate
else
print tBills, investmentReturn, tBillRate
print bonds, investmentReturn, corpBondRate
print stocks, investmentReturn, stocksRate
endif
yearIncrement = yearIncrement + 1 // do you mean to call this when already in a for loop
case yearIncrement of
10, 20, 30 : numberYears = numberYears + 10;
endcase
if yearIncrement= 10 then
endfor
perform FinishLine()
Return