Calculate Annually Compounded Interest
You can write a computation to calculate the future value of an investment with a constant interest rate compounded annually. The following computation is based on a formula that uses three variables to compute the future value (FV): the starting principal amount (P), interest rate (R), and number of years (N).

The scripts below show two ways to calculate annually compounded interest. The first version is broken up into several small calculations, and the second version has everything on one line. Often, it is easier to write and maintain computation scripts if they are broken up into smaller segments like the first version.