Error getting tags :
error 404Error getting tags :
error 404 compound | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
compound
Basics
Expander triangle
Type
Function
Syntax
compound(interestPerPeriod,numberOfPeriods)
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the principal plus accrued interest of an investment.
Examples

compound(.05,20)
put theInvestment * compound(yearlyInterest,numberYears) into endValue

Additional Comments
Expander triangle

Use the compound function to calculate the value of an investment that earns interest.

Parameters:

The interestRate is a positive number. The interestRate is expressed as a fraction of 1 so, for example, an 8% rate is written .08.

The numberOfPeriods is a positive number.

Value:

The compound function returns a positive number.

Comments:

The formula for the value of an compound-interest-bearing account is

(1 + interestRate)^( numberOfPeriods)

The compound function calculates this value.

The numberOfPeriods and the interestRate must use the same unit of time. For example, if the periods are months, the interest rate is the interest per month.

User Comments
Expander triangle