Compound Interest Calculator Request the Principal. Request the Rate. Request the Time in Years. Calculate and output the simple interest. (P * R * T / 100). For each year, calculate and output the compound interest.