Improved version: replace 20 by nlast=20; amount=1000;interestrate=0.02;nlast=20; Do[ interest=amount*interestrate; amount= amount+interest; Print[ This is the , n, week.