title: Simple Retirement Fund Using Loops
body: <p>I'm trying to make a program that calculates the amount of money someone would have after retiring at 67 and started saving at the age the entered. </p>
  
  <p>The program should show how much the save each year at a rate of 2.5% and then the total after the entered amount of years. </p>
  
  <p>So far I got the income to display for each year but the total seems to be 2.5% more than what it needs to be. </p>
  
  <pre><code>int age = 0;
      double income;
      double total = 0;
  
      Scanner keyboard = new Scanner(System.in);
  
      System.out.print("How old are you? ");
      age = keyboard.nextInt();
  
      System.out.print("What is your annual income? ");
      income = keyboard.nextDouble();
  
      System.out.print("Age(years) Income($)");
  
      while(age &lt; 68) {
          System.out.print(age + " " + income);
          income += (income * .025);
          total += income;
          age ++;
      }
  
      System.out.print("total($) " + total);
  
      keyboard.close();
  </code></pre>
  
  <p>I've been using 62 as my age and 60000 as the amount per year. But when I print the total instead of getting ~383000 I'm getting ~392000. </p>