Introduction to Personal Finance Calculations Using the Finance Package
The Finance package assists you in performing financial calculations and financial modeling. This example worksheet introduces the personal finance commands in the Finance package. With these commands, you can calculate the present value and the accumulated value of annuities, growing annuities, perpetuities, growing perpetuities and level coupon bonds. Moreover, it can also help you compute the yield to maturity of a bond. You can construct an amortization table, determine the effective rate of interest for a given compound interest rate, and find the present value and the future value of a fixed quantity for a given compound interest rate.
Note: All examples use dollars ($) and all interest rates are in terms of percent (%). The default setting for floating-point precision is 10.
restart
withFinance:
Amortization Method
The most common method of repaying interest-bearing loans is the amortization method. This procedure is used to liquidate an interest-bearing debt by a series of periodic payments, usually equal, at a given interest rate. Maple can determine how many payments are required to pay off the loan. You can also create amortization tables.
Consider a debt of $100, with interest at 10% per annum, which is to be amortized by payments of $50 at the end of each year for as long as necessary.
A≔amortization⁡100,50,0.10
A:=0,0,0,−100,100,1,50,10.00,40.00,60.00,2,50,6.0000,44.0000,16.0000,3,17.600000,1.600000,16.000000,0.,17.600000
The list object returned from the above command is displayed in a Matrix below, along with descriptive headings. We see that you must make three payments: $50, $50, and $17.60. The second object returned above, $17.60, is the cost of the loan.
amortization_table=Matrix⁡1+nops⁡A1,5,i,j→if⁡i=1,'n','Payment','Interest','Principal','Balance'j,A1i−1j
Annuities
Maple can find the present value of ordinary simple annuities. Suppose that you want to find the present value of an annuity paying $100 per annum for 5 years, starting 1 year from now, at an annual interest rate of 10%.
annuity⁡100,0.10,5
379.0786769
To find the accumulated value of the same annuity at the end of 5 years, take the result and multiply it by 1.105.
⋅1.105
610.5099999
Consider a growing (increasing) annuity that pays $100 at the end of the first year, then grows at 5% per annum. It is a 5-year annuity and the annual interest rate is 10%.
growingannuity⁡100,0.1,0.05,5
415.0591276
If the interest rate changes to j12=10% and the growth rate is unknown (call it g), then the future value is given by the formula below.
growingannuity⁡100,0.112,g,5⋅12
100⁢1−0.9917355375+0.9917355375⁢g600.008333333333−g
As a final example, analyze the case in which the payments per time period are not fixed. Suppose that you want to find the present value of variable revenues expected from a project. The project expects $200 in revenue in year 1, $150 in year 2, and $100 in year 3. The opportunity cost of capital is 7.8%.
cashflows⁡200,150,100,0.078
394.4330862
You may generalize the above result. If the discount rate is r%, then the present value of the benefits earned from the project is given by the command cashflows.
cashflows⁡200,150,100,r
2001+r+1501+r2+1001+r3
Bonds
When a corporation or government needs to borrow a large sum of money for a reasonably long period of time, they issue bonds that they sell to investors. The bond's yield rate is the income divided by the amount invested.
A $1000 bond that pays interest at j2=10% (the bond rate) is redeemable at par at the end of 5 years. Suppose you want to find the purchase price of the bond to yield an investor 14% compounded semiannually. (Note: The yield rate always comes before the coupon rate.)
levelcoupon⁡1000, 0.142,0.102,5⋅2
859.5283693
The result above shows that the bond is purchased at a discount, because the opportunity cost of capital is higher than the bond rate.
Try a more complicated example. A $5000 bond, maturing on September 1, 2017, has semiannual coupons at 13%. Find the purchase price on March 1, 1996, to guarantee a yield of j2=12.5%. (Note: There are 43 payment periods.)
levelcoupon⁡5000,0.1252,0.132,43
5185.246821
We see that the bond was purchased at a premium.
Suppose that you want to find the yield rate to maturity of a bond. Suppose that a large corporation issues a 15-year bond that has a face value of $10,000,000, and pays interest at a rate of j2=10%. If the purchase price of the bond is $11,729,203.32, the yield to maturity for the bond is found by the yieldtomaturity command.
yieldtomaturity⁡11729203.32, 10000000.00, 0.102, 30
0.04000000005
That is, approximately 4% per half-year, or j2=8%.
Effective Interest Rates
For a given nominal rate of interest jm compounded m times per year, the annual effective rate of interest is the rate j which, if compounded annually, will produce the same amount of interest per year.
Suppose that you want to calculate the annual equivalent rate j corresponding to j2=10%.
effectiverate⁡0.10,2
0.102500000
which is 10.25%.
Compute the annual effective rate of interest to j365=13.25%.
effectiverate⁡0.1325,365
0.141651692
which works out to be about 14.17%.
The effective annual rate of interest corresponding to jm=r% is
effectiverate⁡r,m
1+rmm−1
As another example, to find the rate j4 equivalent to j2=10%.
4⋅ effectiverate 0.104, 24
0.098780308
which is approximately 9.88%.
Recall that jm is the annual interest rate that is compounded m times per annum. The continuous compound rate is the nominal interest rate that is compounded without limit, or continuously. Typical notation for this is j∞. For instance, the annual effective rate of interest equivalent to j∞=15% is
effectiverate⁡0.15,∞
0.161834243
You may determine the rate j12 equivalent to this rate in the following manner.
12⋅ effectiverate0.1512, ∞12
0.150941424
The future value S, of an amount P, given that it is compounded continuously at a rate j∞=r over t years, is given by S=P⁢ⅇr⁢t. The accumulated value of $5000 over 15 months at a nominal rate of 18% compounded continuously is given by
5000⁢ⅇ0.18⋅1512
6261.613580
Interest Formulas
If P is the principal at the beginning of the first interest period, S is the accumulated value at the end of t periods, and r is the interest rate per time period, then S=P⁡1+rt. Use the futurevalue command to find S and the presentvalue command to determine P.
Suppose that you deposit $100 in the bank, and earn interest at 10% per annum. The following command finds the accumulated value of the deposit at the end of four years.
futurevalue⁡100,0.10,4
146.4100000
If you want $146.41 four years from now, then how much money must you invest now at an interest rate of 10%?
presentvalue⁡146.41,0.10,4
100.0000000
You may extend the first example to the fundamental compound interest formula. If P is the principal at the beginning of the first interest period, S is the accumulated value at the end of n periods, and i is the interest rate per conversion period, then S=P⁡1+in. Again you can use the futurevalue and presentvalue command, but you must modify the arguments, because you are dealing with compound interest here.
Going back to the first example, suppose that you invest $100 at an annual interest rate of 10% compounded monthly for 4 years. This means that, for each compound period, the interest is 0.1012 (conventionally written as j12=10%). Since the number of compound periods per year is 12, the total number of periods is (4)(12). The following command finds the accumulated value.
futurevalue⁡100, 0.1012, 4⋅12
148.9354075
Change the original investment to $(100+a). The interest rate may only be a proportion (b) of what the current compounded interest rate is from the above problem, or 0.10⁢b12.
futurevalue⁡100+a,.1012⋅b, 4⋅12
100+a⁢1+0.008333333333⁢b48
Perpetuities
A perpetuity is an annuity whose payments begin on a fixed date and continue forever.
Suppose that you want to establish a scholarship fund paying scholarships of $1500 each year. How much money must you invest at an annual interest rate of 9% if the endowment is to pay its first scholarship one year from now?
perpetuity⁡1500,0.09
16666.66667
If the first scholarship is to be given out 3 years from now, you must modify the above command slightly. Notice that you should use 1.092, as opposed to 1.093, since you discount only 2 periods. As a result, the present value of the perpetuity is in 2 years from now:
perpetuity1500,0.091.092
14027.99989
Just like simple annuities, perpetuities can grow. Suppose that you buy some shares for a company. You expect the first dividend payment to be $235 one year from now, and these payments are expected to grow at g% per annum, continuing indefinitely. Money is worth 7.5%. The following command determines the present value of these payments.
growingperpetuity⁡235,0.075,g
2350.075−g
For more information, consult the Overview of the Finance package help page. You can also refer to the following help pages: amortization, annuity, growingannuity, cashflows, levelcoupon, yieldtomaturity, effectiverate, futurevalue, presentvalue, perpetuity, and growingperpetuity.
Return to Index for Example Worksheets
Download Help Document