I\'ve created this code so far: private void btnCalculate_Click(object sender, EventArgs e) { double principle, // principle rate,      // interest rate amount;    // amount on deposit int year,         // total years entered by user yearCounter;  // counter for each year; used in deposit amount formula // create a header string strOutput = \"Year\\tAmount on Deposit\ \ \"; // get user input principle = Convert.ToDouble(txtPrinciple.Text); rate = Convert.ToDouble(txtInterest.Text); year = Convert.ToInt32(updYear.Text); // change interest rate to decimal equivalent (ie: user enters 5; change to .05) rate /= 100; // Loop from year 1 through the year entered by the user. Calculate amount on deposit for each year. for (yearCounter = 1; yearCounter <= year; ++yearCounter) { // calculate yearly amount using given formula amount = principle * Math.Pow(1 + rate, yearCounter); // build the string that will finally be displayed in the multiline textbox strOutput += yearCounter + \"\\t\" + String.Format(\"{0:C}\", amount) + \"\ \ \"; } // display the string in the multiline textbox txtAnnualAmount.Text = strOutput; } } } However, I\'m trying to increment the years in multiples of 5 instead of 1 in the multiline textbox. How do i do this? Solution All you need is to replace the increment operation for loop from incrementing value by 1 to incrementing value by 5. Modify the for loop code as follows: //Some code goes here for (yearCounter = 1; yearCounter <= year; yearCounter = yearCounter + 5 ) { // Some code goes here } // Some code goes here .