annuity - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Finance

  

annuity

  

present value of an annuity

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

annuity(cash, rate, nperiods)

Parameters

cash

-

cash flow

rate

-

interest rate

nperiods

-

number of periods

Description

• 

The function annuity gives the present value at time=0 of an annuity of nperiods equal payments of the amount cash, starting at time=1.

• 

Mortgages are examples of annuities.

• 

Since annuity used to be part of the (now deprecated) finance package, for compatibility with older worksheets, this command can also be called using finance[annuity]. However, it is recommended that you use the superseding package name, Finance, instead: Finance[annuity].

Examples

withFinance:

Present value of an annuity paying 100 units per year for 15 years starting next year. The interest rate is 10% per year.

annuity100,0.10,15

760.6079506

(1)

Monthly payments required for a mortgage of 10000 units, amortized over 25 years, not in advanced, with interest at 10% per year, compounded semiannually. There are 25*12 monthly payments.

Npayments2512

Npayments300

(2)

The semi-annual interest rate is 5% (10%/2). We need to find the monthly interest rate that when compounded give this 5% figure. This is calculated as follows. The range 0 .. 0.5, is to ensure we obtain the appropriate value.

mratefsolveeffectiverater,6=0.05,r,0..0.56

mrate0.008164846052

(3)

Verification: the future value of 1 units after 6 months should be 1.05

futurevalue1.,mrate,6

1.050000000

(4)

The value of an annuity of 1 units paid monthly for 25 years at the interest rate we calculated is then

Aannuity1,mrate,Npayments

A111.7958950

(5)

The required monthly payments are thus:

P10000A

P89.44872260

(6)

The total payments amount to:

TotPNpayments

Tot26834.61678

(7)

From which the cost of the loan is readily obtained. The mortgage rules above are typical of mortgages obtained from banks in Canada. As with all legal matters, rules can change, so check first about their applicability.

The payments if the mortgage is paid in advanced (so the first payment is already deducted from the loan) are given by

solveP1+annuityP1,mrate,Npayments1=10000

88.72430239

(8)

Compatibility

• 

The Finance[annuity] command was introduced in Maple 15.

• 

For more information on Maple 15 changes, see Updates in Maple 15.

See Also

Finance

Finance[growingannuity]