Financial Mathematics with Python Guide
Financial Mathematics with Python Guide
net/publication/353919145
CITATION READS
1 2,404
1 author:
Stephen Fratini
18 PUBLICATIONS 34 CITATIONS
SEE PROFILE
All content following this page was uploaded by Stephen Fratini on 28 March 2024.
by Stephen Fratini
Financial Math with Python 2
Table of Contents
List of Figures ......................................................................................................................................... 6
List of Tables .......................................................................................................................................... 7
Preface ................................................................................................................................................... 8
Acknowledgements ............................................................................................................................... 9
1 Introduction.................................................................................................................................. 11
1.1 Purpose ................................................................................................................................. 11
1.2 Intended Usage ..................................................................................................................... 11
1.3 Prerequisites ......................................................................................................................... 11
1.4 Conventions .......................................................................................................................... 11
1.5 Outline .................................................................................................................................. 12
2 Background................................................................................................................................... 13
2.1 Progressions.......................................................................................................................... 13
2.1.1 Arithmetic Progressions ................................................................................................ 13
2.1.2 Geometric Progressions ................................................................................................ 13
2.1.3 Recursive Progressions ................................................................................................. 14
2.2 Supporting Programs ............................................................................................................ 15
2.2.1 Arithmetic Progression Calculator ................................................................................ 15
2.2.2 Geometric Progression Calculator ................................................................................ 15
2.3 Exercises ............................................................................................................................... 16
3 Interest ......................................................................................................................................... 17
3.1 Simple Interest...................................................................................................................... 17
3.2 Compound Interest............................................................................................................... 17
3.3 Continuous Interest .............................................................................................................. 18
3.4 Effective Rate of Interest ...................................................................................................... 19
3.5 Present Value ........................................................................................................................ 21
3.6 Discounting ........................................................................................................................... 21
3.7 Time Value of Money ........................................................................................................... 23
3.8 Interest, Inflation and Taxes ................................................................................................. 25
3.9 Supporting Programs ............................................................................................................ 26
3.9.1 Interest Compounding Calculator ................................................................................. 26
3.10 Exercises ............................................................................................................................... 27
4 Annuities....................................................................................................................................... 28
List of Figures
Figure 1. Effective Rate of Discount for a Given Time Period ............................................................. 22
Figure 2. Accumulating with a Discount Rate ...................................................................................... 23
Figure 3. Equivalent Values to X in the Past and Future ..................................................................... 24
Figure 4. Debt and Payments Relative to a Focal Date ....................................................................... 25
Figure 5. Payment Schedule for Accumulated Value of Ordinary, Simple, Certain Annuities ............ 28
Figure 6. Payment Schedule for an Annuity Due ................................................................................. 33
Figure 7. Deferred Annuity .................................................................................................................. 34
Figure 8. Multiple Payments per Compounding Period ...................................................................... 37
Figure 9. Payouts timeline for a bond ................................................................................................. 58
Figure 10. Bond Purchases between Coupon Dates............................................................................ 63
Figure 11. Graph of Dirty Bond Prices over Time ................................................................................ 65
Figure 12. Graph of Clean Bond Prices over Time ............................................................................... 66
Figure 13. Graph of NPV as a Function of the Rate of Return ............................................................. 81
List of Tables
Table 1. Computation of Final Principal using Compound Interest .................................................... 18
Table 2. Accumulated Value of an Ordinary, Simple, Certain Annuity ................................................ 29
Table 3. Interest-Principal Repayment Breakdown Example .............................................................. 46
Table 4. Interest Rate Analysis for Refinancing ................................................................................... 50
Table 5. Bond Purchase Price versus Yield .......................................................................................... 59
Table 6. Schedule for Bond Purchased at a Premium ......................................................................... 61
Table 7. Schedule for Bond Purchased at a Discount .......................................................................... 62
Table 8. Dirty Price Changes over Time for a Bond ............................................................................. 64
Table 9. Clean Price Changes over Time for a Bond ............................................................................ 65
Table 10. Balloon Loan – Bond Comparison ........................................................................................ 67
Table 11. Answer to Exercise 6 ............................................................................................................ 69
Table 12. Initial Investment and Cash Flow in Half-year Increments .................................................. 72
Table 13. Investment Analysis for Acme Furniture ............................................................................. 73
Table 14. Initial Investment, and Cash Flow in Half-year Increments - Revised ................................. 73
Table 15. Investment Analysis for Acme Furniture - Revised .............................................................. 74
Table 16. Project Quarterly Cash Flows for a Resort Business ............................................................ 74
Table 17. Investment Analysis for Resort Investment ......................................................................... 75
Table 18. Operating and Investment Cash Flows ................................................................................ 75
Table 19. NPV Analysis in the Case of Multiple Investments .............................................................. 76
Table 20. Optimistic-Pessimistic Cash Flows for New Restaurant ...................................................... 76
Table 21. NPV for Optimistic and Pessimistic Scenarios ..................................................................... 77
Table 22. Acme Furniture - Cash Flow Estimates with Loan Repayments .......................................... 78
Table 23. Investment Analysis for Acme Furniture with Loan Repayments ....................................... 78
Table 24. Cash Flows for Projects A and B based on Same Initial Investment .................................... 79
Table 25. NPV Comparison for Projects A and B ................................................................................. 79
Table 26. Cash Flow with Two IRRs...................................................................................................... 80
Table 27. Input for MIRR Example ....................................................................................................... 83
Table 28. DPP for Project A .................................................................................................................. 84
Table 29. DPP for Project B .................................................................................................................. 84
Preface
This book is targeted at people who are interested in learning about the mathematics behind some
basic financial concepts, such as interest rates, annuities, loans, bonds and capital budgeting, as
well as trained mathematicians looking to apply their skills to finance. The target audience includes
individual investors, small business owners, and students of business and finance.
Derivations for most of the stated formulas are provided in the text. The assumed mathematical
background is minimal (basic algebra and just a touch of the limit and integral concepts from
calculus). For more extensive coverage of basic financial mathematics, the reader is referred to the
textbooks by Brown and Kopp [2], Broverman [3] and Alhabeeb [4].
[Author’s Remark: In my opinion, the financial concepts are more complex than the mathematics
used in this book.] By the way, the convention of using “author’s remark” is used elsewhere in the
book when I state a personal opinion or add a note that is not in the flow of the discussion.
Many of the financial processes discussed in this book are supported by Python programs that the
author has made freely available at the following Github site:
[Link]
Further, some of the computations concerning capital budgeting are supported by Microsoft Excel
financial functions such as NPV, IRR and MIRR. The associated Excel spreadsheets (supporting
examples in this document) are also made available at the above mentioned Github site.
While this document does provide some background and description for each Python program, it is
not intended to be a Python tutorial. However, the reader should be able to use the Python
programs without understanding Python. The programs were developed on the open source
Anaconda software environment using the Jupyter Notebook (which is a browser-based
development platform for Python), see [Link] There are several good online
tutorials on Python (see [Link] or
[Link]
Acknowledgements
The author wishes to thank Jenny Huang and James Swigart for their helpful review and comments
on this book.
Stephen Fratini
Sole Proprietor of The Art of Managing Things
Eatontown, New Jersey (USA)
Email: sfratini@[Link]
LinkedIn: [Link]/in/stephenfratini
1 Introduction
1.1 Purpose
The purpose of this book is to provide the mathematical basis for several fundamental financial
concepts, i.e., interest compounding, annuities, loans, bonds and capital budgeting. A secondary
purpose is to provide the reader with some simple Python programs to assist with the associated
financial calculations. [Author’s Remark: While the Python programs do some checking for data
entry errors, they are not production level. Feel free to make modifications to the code and use
elsewhere. I only ask that you give attribution to the source (i.e., me) if you make commercial use
of my programs.]
1.3 Prerequisites
As noted in the preface, the mathematical prerequisites are minimal (basic algebra). The
summation of a series of numbers is a common theme in the book (the basics concerning series are
covered in Section 2). From a financial perspective, very little background is assumed but the
reader is warned that some of the concepts are subtle and will require some reflection.
To use the Python programs, one needs to know how to install Anaconda (or a similar environment
for executing Python code). The provided programs are Graphical User Interface (GUI) based, with
some of the output going to the GUI and in a few cases, the output goes to a Comma-Separated
Values (CSV) file which can be opened with any spreadsheet application such as Microsoft Excel or
even a simple text editor.
1.4 Conventions
This book uses a period as the decimal separator and a comma as the thousand’s separator, e.g.,
$24,000.98. This is the convention used in the United States and many other countries. However,
there are several other conventions used in other parts of the world. For further information
concerning conventions for number representation (and not just for money), see the Wikipedia
article entitled “Decimal separator” [1].
1
Fractions with repeating digits are represented using an overhead bar. For example, we write 3 as
.̅
3 with the meaning that there are an infinite number of threes after the decimal point. This also
applies for multiple repeated digits, e.g., 12.345781781781 … would be written 12.345781 ̅̅̅̅̅ (the
bar just goes over the infinitely repeating digits).
1.5 Outline
Section 1 is this introduction.
Section 2 provides some background on various types of progressions and their sums. Basic
mathematical concepts such as progressions are a recurring topic in the book.
Section 3 covers topics concerning interest rates, and the past and future value of money.
Conceptually, Section 3.7 (concerning the time value of money) is critical to the understanding of
much of what follows in the book.
Annuities are discussed in Section 4.
Section 5 covers topics concerning the repayment of loans such as mortgages.
Various types of bonds are discussed in Section 6.
Section 7 covers decision making techniques for capital budgeting.
2 Background
2.1 Progressions
Progressions are sequences where each term is based on mathematical operations applied to one
or more previous terms. Progressions are essential in finance concerning topics such as interest
accumulation.
In general, an arithmetic progression with initial term 𝑥1 and difference 𝑑 can be represented as
𝑥1 , 𝑥1 + 𝑑, 𝑥1 + 2𝑑, …
where the 𝑛𝑡ℎ term is 𝑥𝑛 = 𝑥1 + (𝑛 − 1)𝑑.
The sum of the first 𝑛 terms (call it 𝑆𝑛 ) can be computed by writing the progression forward and
backward, and then adding, i.e.,
𝑆𝑛 = 𝑥1 + (𝑥1 + 𝑑) + (𝑥1 + 2𝑑) + ⋯ (𝑥𝑛 − 2𝑑) + (𝑥𝑛 − 𝑑) + 𝑥𝑛
𝑆𝑛 = 𝑥𝑛 + (𝑥𝑛 − 𝑑) + (𝑥𝑛 − 2𝑑) + ⋯ (𝑥1 + 2𝑑) + (𝑥1 + 𝑑) + 𝑥1
which implies (after some cancellation of terms)
2𝑆𝑛 = 𝑛(𝑥1 + 𝑥𝑛 )
or
𝑛
𝑆𝑛 = (𝑥 + 𝑥𝑛 )
2 1
For −1 < 𝑟 < 1, the term 𝑟 𝑛 approaches zero for 𝑛 approaching infinity. Apply this observation to
the formula for 𝑆𝑛 gives the following result:
𝑎
𝑎 + 𝑎𝑟 + 𝑎𝑟 2 + 𝑎𝑟 3 + ⋯ = , −1 < 𝑟 < 1
1−𝑟
1
For example, the sum of the series with first term 2 and multiplier is
3
2 2 2 2
2+ + 2+ 3+⋯= =3
3 3 3 1
1−3
1 1 2 3 5 8 13 21 34 55 89 144 …
For another example, consider the tetranacci numbers which start with four predetermined terms,
with each term afterwards being the sum of the preceding four terms, i.e., 𝑎𝑛 = 𝑎𝑛−1 + 𝑎𝑛−2 +
𝑎𝑛−3 + 𝑎𝑛−4 with 𝑎1 = 𝑎2 = 𝑎3 = 0 and 𝑎4 = 1. When expanded, the recursive formula yields the
following:
0 0 0 1 1 2 4 8 15 29
56 108 208 401 773 1,490 2,872 5,536 10,671 20,569
39,648 76,424 147,312 283,953 547,337 1,055,026 …
2.3 Exercises
1. Show that the sum of an arithmetic progression can also be represented as
𝑛
𝑆𝑛 = 2 (2𝑥1 + (𝑛 − 1)𝑑).
2. Find the 335th term in the arithmetic progression 3, 9, 15, 21, … and also find the sum of the
first 335 terms. Hint: Use the Python program on arithmetic progressions.
3. If the 57th term in an arithmetic progression is 677 and the different between terms is 12,
what is the first term. Hints: One approach is to use the equation for the 𝑛𝑡ℎ term in an
arithmetic progression and solve of 𝑥1 . Another approach is to use the Python program with
677 as the initial term, -12 as the difference and 57 as the desired term (basically working
backward with negative steps).
4. Find the 237th term in the geometric progression with initial term 2 and multiplier 1.1. Hint:
Use the Python program on geometric progressions.
5. Find the sum of the first 10 terms in the geometric progression with initial term 25 and
multiplier 7. Hint: Use the Python program on geometric progressions.
6. If the 8th term in a geometric progression is 2,470,629 and the multiplier is 7, what is the
first term? Hint: Work backwards by dividing by 7 (eight times).
7. The Lucas progression is given by 2, 1, 3, 4, 7, 11,18, … Determine a recursive formula that
yields the Lucas progression. Hint: The initial two terms (2 and 1) are given. The recursive
formula should start with the third term.
3 Interest
3.1 Simple Interest
Simple interest is computed based on the amount of principal and time duration, but without any
compounding. Simple interest can be applied to a loan or to money saved in a bank account.
In its most basic form, simple interest entails an interest rate 𝑟 (which is typically stated per year), a
given amount of principal (𝑃) and the term (𝑡) when the principal and interest is paid back to the
lender. The term is typically stated in years or fractions thereof. Under these assumptions, the
amount of simple interest plus the original principal is given by the formula:
𝑃 + 𝑃𝑟𝑡
which can be written as
𝑷(𝟏 + 𝒓𝒕)
For example, Mr. Smith purchases a car from a car dealer. The car costs $28,440. Mr. Smith agrees
to make an initial (upfront) payment of $20,000 and the car dealer agrees to allow Mr. Smith to pay
the remaining amount, with 6% annual interest, in 7 years. At the end of 7 years, Mr. Smith must
pay the principal ($8,400) plus simple interest over the 7 years, i.e., $8,400 ∗ .06 ∗ 7 = $3,528.
In a variation of the above example, Mr. Smith pays the principal back to the car dealer at the end
.06
of 7 years but he must make monthly interest payments in the amount of $8,400 ∗ ( 12 ) = $42.
The accumulated amount of interest paid to the car dealer is an arithmetic progression, i.e.,
42, 84, 126, … , 3,528. This is an example of what is called a balloon loan that allows for the entire
principal to be paid back at the end of the loan’s term.
Some financial books and articles use the notation 𝑖 (𝑛) to indicate a nominal annual interest rate
that is compounded 𝑛 times per year. Thus, our 𝑟 is 𝑖 (𝑛) . [Author’s remark: This notation is
confusing. First, it is not a power of 𝑖. Secondly, if the nominal annual interest rate is 𝑖, we would
say that 𝑖 (𝑛) = 𝑖 for all values of 𝑛 (also confusing). So, I have avoided using this notation as much
as possible and have taken the approach of writing out in prose what is meant, i.e., “nominal
annual interest of 6% compounded monthly” rather than 𝑖 (12) = .06.]
… …
𝑟
Alternately, we can let 𝑖 = 𝑛 be the interest rate per compounding period and 𝑠 = 𝑛𝑡 be the
number of compounding intervals. These substitutions yield an equivalent formula for the
accumulated principal after 𝑠 compounding intervals, i.e., 𝑷(𝟏 + 𝒊)𝒔 .
As an example, consider a scenario where Ms. Ortega deposits $10,000 into a bank account that
advertises a 2% nominal annual interest rate which is computed monthly. Assuming no withdraws
have been made, how much is the account worth after 3 years and 6 months? Using the formula
for compound interest with 𝑃 = $10,000, 𝑟 = .02, 𝑛 = 12 and 𝑡 = 3.5, the final principal is
.02
$10,000(1 + 12 )42 = $10,724.46.
1 𝑖
From calculus, we have that lim (1 + 𝑖 ) = 𝑒 where 𝑒 ≅ 2.71828 (known as Euler’s number).
𝑖→∞
Thus, the formula for continuous interest is given by 𝑷𝒆𝒓𝒕 .
Returning to the example of Ms. Ortega’s bank account, assume the same interest rate and time
period (3.5 years) but with continuous interest. In this case, the account would be worth
$10,000𝑒 (.02)(3.5) = $10,725.08 which is only slightly more than monthly compounding!
(70,000)(100)
( 200,000 ) 35
= = 14%
2.5 2.5
In general, if the value of an investment is 𝑉(𝑡) at time 𝑡 and 𝑉(𝑡̂) at some later time 𝑡̂, then the
effective interest rate from time 𝑡 to 𝑡̂ is given by the formula
𝑉(𝑡̂) − 𝑉(𝑡)
𝑉(𝑡)
In words, the effective interest rate formula indicates the increase or decrease (as a fraction) of an
investment from time 𝑡 to a later time 𝑡̂.
The effective interest rate provides a way to compare the growth of simple and compound interest.
Assume the starting principal is P and the interest rate per time period is 𝑖.
In case of compound interest, the effective interest rate in period 𝑛 is
𝑃(1 + 𝑖)𝑛 − 𝑃(1 + 𝑖)𝑛−1 1 + 𝑖 − 1
= =𝑖
𝑃(1 + 𝑖)𝑛−1 1
In the case of simple interest, the effective interest rate in period 𝑛 is
𝑃(1 + 𝑛𝑖) − 𝑃(1 + (𝑛 − 1)𝑖) 𝑖
=
𝑃(1 + (𝑛 − 1)𝑖) 1 + (𝑛 − 1)𝑖
The effective interest rate for compound interest remains constant over time. However, the
effective interest rate for simple interest decrease over time (i.e., as 𝑛 gets larger) because there is
no compounding.
It is common for banks to state the effective yearly interest rate when principal is compounded at a
nominal yearly rate of 𝑟. This is referred to as Annual Percentage Yield (APY). The APY (represented
as the variable 𝑦 below) is derived by inserting the compound interest formula (with 𝑡 = 1) into the
effective interest rate formula to get:
𝑟
𝑃(1 + 𝑛)𝑛 − 𝑃 𝑟
𝑦= = (1 + )𝑛 − 1
𝑃 𝑛
For example, if a bank advertises a nominal yearly interest rate of 6% compounded daily, then the
.06 365
APY is (1 + ) − 1 ≅ .06183 or about 6.183%.
365
It is also possible to solve for the nominal yearly compound interest rate that is equivalent to a
given APY, i.e.,
𝑟 = 𝑛((𝑦 + 1)1/𝑛 − 1)
For example, what nominal interest rate (compounded monthly) is equivalent to an APY of 8%?
1
Using the above equation with 𝑛 = 12 and 𝑦 = .08, we get 𝑟 = 12 (1.0812 − 1) = .077206 or
7.7206%.
A common use of effective interest rate is to normalize other types of interest accumulation with
respect to simple interest. It is also possible to relate (via formulas) different types of interest (this
is covered in Section 4.7).
3.6 Discounting
Discount is a concept similar to interest, i.e.,
• Discount is paid/due at the beginning of a payment period and is calculated on the balance
at the end of the period.
• Interest is paid/due at the end of a payment period and calculated on the balance at the
beginning of the period.
There are some cases where the anticipated amount of money owed at the end of a loan is
deducted at the start of the loan, i.e., the “interest” is paid up front. This is known as “discounting a
loan” and the rate of discount is represented by the symbol 𝑑. (Note that the term “discount rate”
also refers to the interest rate that the United States Federal Reserve charges banks for short term
loans. However, that is not the topic of this section.)
For example, a bank makes a short-term (9 months) $10,000 loan to Ms. Peeples at a 7% annual
9
discount rate. The bank deducts 12 (7) = 5.25% ($525) at the beginning of the loan. Ms. Peeples
receives $10,000 − $525 = $9,475 up front, and needs to repay $10,000 at the end of 9 months.
525
The effective interest rate per 9 months (as seen by the bank) is 9,475 ≅ .05541 or 5.541%.
The effective rate of discount (denoted as 𝑑) from time 𝑡 to some later time 𝑡̂ is the ratio of the
change in value of an investment (known as the amount of discount) to the value at the end of
period (at time 𝑡̂), i.e.,
𝑉(𝑡̂ ) − 𝑉(𝑡)
𝑑=
𝑉(𝑡̂ )
where 𝑉(𝑠) is the value of an investment at time 𝑠. This is almost the same as the effective interest
rate formula except that the denominator is the value at the end of the time period rather than at
the beginning. The situation is depicted in Figure 1.
10,000−9,475 525
In the previous example, 𝑑 = = = .0525 or 5.25%.
10,000 10,000
In the case of compound interest, the effective rate of discount is constant for the repayment
periods as can be seen from the calculation below. (Note that 𝑖 is the interest rate per
compounding period.)
𝑉(𝑡𝑛 ) − 𝑉(𝑡𝑛−1 ) 𝑃(1 + 𝑖)𝑛 − 𝑃(1 + 𝑖)𝑛−1 1 + 𝑖 − 1 𝑖
𝑑= = 𝑛
= =
𝑉(𝑡𝑛 ) 𝑃(1 + 𝑖) 1+𝑖 1+𝑖
𝑑
Solving for 𝑖 in the above equation, we get 𝑖 = 1−𝑑.
In the case of simple interest, the effective rate of discount depends on both the duration of the
loan (𝑡) and the annual interest rate (𝑟). Since there is no compounding, there is only one
repayment period which starts at time 0 and ends at time 𝑡. The formula for the effective rate of
discount in this case is derived as follows:
𝑉(𝑡) − 𝑉(0) 𝑃(1 + 𝑟𝑡) − 𝑃 𝑟𝑡
𝑑= = =
𝑉(𝑡) 𝑃(1 + 𝑟𝑡) 1 + 𝑟𝑡
What is the effective rate of discount for a simple interest discount loan of $10,000 for 18 months
.15
at 10% interest? We are given 𝑟 = .1 and 𝑡 = 1.5. Thus, 𝑑 = 1+.15 = .130435 or 13.0435%. Note
that 13.0435% of the final value (expected payment) of the loan (i.e., $11,500) is the stated
amount of the loan, i.e., $10,000. In summary, an 18-month loan of $11,500 at a discount rate of
13.0435% would result in the borrower getting $10,000 at the beginning of the loan with an
obligation to pay the bank $11,500 in 18 months.
While uncommon, it is possible to accumulate a sum of money with a discount rate. Consider an
initial investment of 𝑥0 that is compounded at a discount rate of 𝑑 for 𝑛 periods:
• At the beginning (time 0), 𝑥0 is calculated as the value of the investment at time 1 (call it 𝑥1 )
minus the discount, i.e., 𝑑𝑥1 (note that juxtaposition is meant to imply multiplication). So,
𝑥0 = 𝑥1 − 𝑑𝑥1 which implies 𝑥1 = 𝑥0 (1 − 𝑑)−1 .
• Similarly, 𝑥1 = 𝑥2 − 𝑑𝑥2 which implies 𝑥2 = 𝑥1 (1 − 𝑑)−1 = 𝑥0 (1 − 𝑑)−2 .
• Continuing in this manner, 𝑥𝑛 = 𝑥0 (1 − 𝑑)−𝑛 .
Growth of the initial amount (𝑥0 ) is depicted in Figure 2.
For example, what amount must be invested, at a discount rate of .45% per month, to have
$50,000 at the end of 10 years under a monthly compound discount approach? We are given 𝑑 =
.0045 and 𝑛 = 10 × 12 = 120 and are looking for 𝑥0 such that 𝑥120 = 50,000. Using the formula
for compound discounting, we have
𝑥120 = $50,000 = 𝑥0 (1 − .0045)−120
𝑥0 = $50,000(1 − .0045)120 ≅ $29,101.93.
As another example, consider a discounted 5-year loan at a discount rate of .4% per month where
the loanee initially receives $100,000 from a bank. What is the actual size of the loan, i.e., the
amount of money to be paid back to the loaner at the end of 5-years? We are given 𝑑 = .004, 𝑛 =
5 × 12 = 60 and 𝑥0 = 100,000 and are being asked to find 𝑥60 . Using the formula for compound
discounting, we have
𝑥60 = (100,000)(1 − .004)−60 ≅ $127,186.11
In other words, a discounted loan in the amount of $127,186.11 is requested. The discount
amount $27,186.11 = $127,186.11 − $100,000 is deducted from the loan by the bank and the
loanee receives $100,000. At the end of 5 years, the loanee must pay back $127,186.11 to the
bank.
𝑑 .004
The equivalent interest rate is 𝑖 = 1−𝑑 = 1−.004 = .004016064 (monthly). Compounding at 𝑖 for 60
months with an initial value of $100,000 yields a future value (in 60 months) of
$100,000(1 + .004016064)60 = $127,186.11
Figure 3 shows the value of 𝑋 at a focal date (could be the present or some other date of
importance) and equivalent values in the past and future based on simple, compound, and
continuous interest. For example, if the amount 𝑋(1 + 𝑖)−𝑛 is compounded for 𝑛 time periods,
then we will have 𝑋(1 + 𝑖)−𝑛 (1 + 𝑖)𝑛 = 𝑋. If the amount 𝑋𝑒 −𝑖𝑛 is continuously compounding for 𝑛
time periods, then it would grow to (𝑋𝑒 −𝑖𝑛 )𝑒 𝑖𝑛 = 𝑋 at time 𝑛. We can also work in the opposite
direction. For example, how much is needed at the focal date to have 𝑋 + 𝑖𝑛 at n time periods in
the future. From the diagram, we see the required amount is 𝑋.
Consider a personal loan of $5000 between friends that is due at the end of a three year period.
Determine an equivalent amount of debt due in 1 year and in 5 years if they agree to annual
nominal interest rate of 6% compounded monthly.
Select the focal date to be when the debt is due, i.e., in three years. The equivalent value of
the debt two years before the focal date (i.e., one year from the present) is
.06 −24
5,000(1 + 12
) = $4,435.93. In this case, the debt is paid early. The equivalent value of
.06 24
the debt two years after the focal date is 5,000(1 + 12
) = $5,635.80. In this case, the
debt is later than the agreed repayment time (which we assumed to be the focal date in the
calculations).
As a second example, assume Mr. Jasper owes Ms. Dubois $1,000 in 6 months and another $1,500
in 2 years from now. What single payment, in the present, will liquidate these debts if both parties
agree money is worth 3% (compounded monthly). Same question if the debt is paid in a year.
For the first question, we compute the equivalent value of the two future payments if made
at the present time, i.e.,
. 03 −6 . 03 −24
𝑋 = 1,000 (1 + ) + 1,500 (1 + ) = $2,397.88
12 12
For the second question, notice that the first expected payment is being paid late and will
thus be greater than $1000.
6 −12
. 03 . 03
𝑋 = 1,000 (1 + ) + 1,500 (1 + ) = $2,470.82
12 12
As an example of this principle, consider a $100,000 business loan that is to be paid in 3 equal
payments at the end of 4, 7 and 11 months, with a final payment of $20,000 in 13 months.
Determine the value of the 3 equal payments. The nominal annual interest rate is 4% (compounded
monthly).
To solve the problem, first select a focal date. Any date will do. Let’s select 7 months from
the start of the loan to be the focal date. At the focal date, the equivalent value of the
payments must equal the equivalent value of the debt. If we let 𝑥 be amount of each
unknown payment, then we have the following equation:
value of payments relative to focal date = value of debt relative to focal date
. 04 3 . 04 −4 . 04 −6 . 04 7
𝑥 (1 + ) + 𝑥 + 𝑥 (1 + ) + 20,000 (1 + ) = 100,000 (1 + )
12 12 12 12
2.99681 𝑥 + 19,604.62549 = 98,023.12747
𝑥 = $27,613.42
The relationship between the debt and payments relative to the focal date is depicted in
Figure 4.
If a different focal date is used, the same answer should be obtained. For example, the
following equation uses the end of the loan (13 months) as the focal date.
. 04 9 . 04 6 . 04 2 . 04 13
𝑥 (1 + ) + 𝑥 (1 + ) + 𝑥 (1 + ) + 20,000 = 100,000 (1 + )
12 12 12 12
3.05725 𝑥 + 20,000 = 10,4421.0681
𝑥 = $27,613.42
However, if you invested your $1 at 5% interest at the beginning of the period, you would have
1.05
$1.05 which could be used to purchase 1.03 ≅ 1.0194 of what you could have at the beginning of
the period with $1. So, the real rate of return (for the noted investment) is 1.94% in this scenario.
Look at it this way:
Let’s say that at the beginning of the year, a candy bar costs $1. Also, at the beginning of
the year, you invest $1 at 5% simple interest. Over the course of the year, inflation is 3%. At
the end of the year, you have $1.05 and you want to know how many of the candy bars you
can now buy (call this quantity 𝑥). Due to inflation, the candy bar now cost $1.03. So, we
1.05
have the task of solving the equation 1.05 = 1.03 𝑥. This gives the result 𝑥 = 1.03 = 1.0194
candy bars.
In general, if the interest rate for a given period is 𝑖 and the inflation rate is 𝑟𝑖𝑛𝑓 , the real rate of
return (i.e., interest adjusted for inflation) is
1+𝑖
−1
1 + 𝑟𝑖𝑛𝑓
The above is known as the Fisher equation [5].
If there is a tax rate of 𝑖𝑡 at the end of the year or given period, the effective interest becomes 𝑖𝑡 ∙ 𝑖.
This gives us the modified real rate of return (with taxes considered):
1 + (1 − 𝑖𝑡 ) ∙ 𝑖
−1
1 + 𝑟𝑖𝑛𝑓
Returning to the previous problem with .05 simple interest and a .03 rate of inflation, and assuming
a tax rate of 20%, we get the following real rate of return
1 + (1 − .2)(.05) 1.04
−1= − 1 ≅ 1.0097 or .97%
1 + .03 1.03
3.10 Exercises
1. Determine the value of a simple interest investment of $10,000 at 3% annual interest rate
over a period of 2 years and 7 months. What would the value of the investment be if daily
compounding were used instead? Hint: For the second part of the problem, use the interest
compounding calculator.
2. Country A makes a 100 year loan to Country B from 1 billion dollars at an annual interest
rate of 6%. Compute the amount of interest paid back to Country A under the assumption
of yearly compounded interest, daily compounded interest and continuous compounding.
Hint: Use the interest compounding calculator for each scenario.
3. Mr. Wimple buys a diamond for investment purposes at $55,000, holds the diamond for 5
years and 6 months and then sells the diamond for $100,000. What is the effective interest
rate per year (assuming simple interest)? What is the effective interest rate if monthly
compounding is assumed? Hint: For the second question, use the compound interest
formula with 𝑃 = 55,000, 𝑛 = 12 and 𝑡 = 5.5, set the result equal to 100,000 solve for r,
𝑟
i.e., solve 55,000(1 + )12𝑡 = 100,000 for 𝑟 by taking the natural log on both sides and
12
then apply some basic algebra. The answer is 10.9191% which, as expected, is smaller than
the solution to the first question, i.e., 14.876%.
4. Given a nominal yearly interest rate of 𝑟, compute the effective annual interest rate under
the assumption of continuous compounding between times 𝑡 and 𝑡̂. Hint: From the formula
for effective interest rate, we have
𝑉(𝑡̂) − 𝑉(𝑡) 𝑃𝑒 𝑟(𝑡̂−𝑡) − 𝑃
= = 𝑒 𝑟(𝑡̂−𝑡) − 1
𝑉(𝑡) 𝑃
which is the effect interest rate for the entire time period 𝑡̂ − 𝑡. To get the effective annual
interest rate, just divide by 𝑡̂ − 𝑡.
5. What nominal annual interest rate 𝑟 is required to quadruple an initial amount in 20 years,
with monthly compounding? Same question with continuous compounding? Hint and
𝑟
Answer: For the first question, solve the equation 4𝑃 = 𝑃(1 + )240 to get 𝑟 = 6.9515%.
12
For the second question, solve the equation 4𝑃 = 𝑃𝑒 20𝑟 to get 𝑟 = 6.9315%. In both cases,
you need to take the natural log (i.e., log base e) on both sides and then do some algebra.
6. A rich uncle leaves $5 million to 3 heirs (all nieces). Each niece is to receive an equal amount
of money when she turns 21 years old, which will be 12 months, 27 months, and 43 months
from the time the will is executed. In the meantime, the money is invested at a nominal
annual interest rate of %6 (compounded monthly). How much money is each niece to
receive? Hint: Use the time that the will is executed as the focal date and equate present
value of the investment with that of the payouts to get the following equation (where x is
the amount to be paid to each heir): 𝑥(1 + .005)−12 + 𝑥(1 + .005)−27 + 𝑥(1 + .005)−43 =
5,000,000. Solve for 𝑥.
7. Given a debt of 𝑄 at time 0 which is resolved by 𝑛 equal payments of amount 𝑥 with
periodic interest rate 𝑖, determine 𝑥. Hint: Using the concept of equivalent payments/debts
with the focal date being time 0, we get the equation 𝑄 = 𝑥(1 + 𝑖)−1 + 𝑥(1 + 𝑖)−2 + ⋯ +
𝑥(1 + 𝑖)−𝑛 . Use the formula for the sum of a geometric series and then solve for 𝑥. We will
return to this problem in Section 4.3.1.
4 Annuities
4.1 Terminology
An annuity is a series of payments, usually (but not necessarily) made at equal intervals of time and
in equal amounts. The time between successive payments of an annuity is called the payment
interval (or period). The time from the beginning of the first payment interval to the end of the last
payment interval is referred to as the term of an annuity.
When the dates of the first and the last payments of an annuity are fixed, the annuity is called an
annuity certain. When the term of the annuity depends on some uncertain event (e.g., death of the
annuity’s holder), the annuity is called a contingent annuity.
When payment is made at the end of each payment interval, the annuity is called an ordinary
annuity (or immediate annuity). When payment is made at the beginning of each payment interval,
the annuity is called an annuity-due. A deferred annuity is an ordinary annuity whose first payment
is due at a later date.
When the beginning and end of the payment interval, and the interest compounding period
coincide, the annuity is called a simple annuity (e.g., the mortgages defined in Section 5.1 are
simple annuities); otherwise, it is a general annuity.
The accumulated (or future) value of an annuity is the value of the recurring payments to an
annuity at a certain date in the future, assuming a particular rate of return. The discounted (or
present) value of an annuity is the current value of future payments of an annuity, given a
specified rate of return, or discount rate. The higher the discount rate, the lower the present value
of the annuity.
Figure 5. Payment Schedule for Accumulated Value of Ordinary, Simple, Certain Annuities
No interest is earned on the contribution at the end of period 𝑛 since that is the end of the
annuity’s term. The contribution at the end of period 𝑛 − 1 earns interest 𝑖𝑅 and so its
accumulated value at the end of the annuity’s term is 𝑅 + 𝑖𝑅 = 𝑅(1 + 𝑖). The accumulated value
for the contributions is summarized in Table 2.
The value of the annuity at term is the sum (call it 𝑆) of the following geometric series:
𝑆 = 𝑅 + 𝑅(1 + 𝑖) + 𝑅(1 + 𝑖)2 + ⋯ + 𝑅(1 + 𝑖)𝑛−1
(1 + 𝑖)𝑛 − 1 (𝟏 + 𝒊)𝒏 − 𝟏
=𝑅 =𝑹
(1 + 𝑖) − 1 𝒊
(1+𝑖)𝑛 −1
[Remark concerning notation: the quantity 𝑖
is often represented by a shorthand notation in
financial books and articles. The notation is usually some variation of 𝑠𝑛|𝑖 .]
4.2.2 Examples
For example, Mr. Munch agrees to an annuity savings plan from an investment company. Under the
plan, Mr. Munch will contribute $300 at the end of each month for a period of three years. Interest
is compounded at the end of each month at a nominal annual rate of 6%. How much is the annuity
worth at term?
.06
We have at 𝑅 = 300, 𝑛 = 3(12) = 36 and 𝑖 = 12
= .005. Using the accumulated value formula
for an annuity gives the following result:
1.00536 − 1
𝑆 = 300 = $11,800.83
. 005
Mr. Munch reconsiders and tells that investment company that he really needs about $15,000 to
buy a car in three years and would like to know how much he needs to save each month to reach
that goal under the same conditions as stated above.
In this case, we need so solve for R given 𝑆 = 15,000, 𝑛 = 36 and 𝑖 = .005. We first solve the
accumulation formula for R to get
𝒊𝑺
𝑹=
(𝟏 + 𝒊)𝒏 − 𝟏
We then substitute the specific values for the problem at hand into the above formula and get the
following result
(.005)(15,000)
𝑅= ≅ $381.33
1.00536 − 1
In yet another variation of the problem, assume Mr. Munch wants to limit his monthly payment to
$300 but is willing to wait longer to reach his goal of $15,000. In this scenario, we need to solve the
(1+𝑖)𝑛 −1
equation 𝑆 = 𝑅 𝑖
for 𝑛. With some rearrangement of the equation, we get
𝑖𝑆
+ 1 = (1 + 𝑖)𝑛
𝑅
Take the natural log on both sides and the equation, and then isolation 𝑛 to get:
𝒊𝑺
𝐥𝐧( 𝑹 + 𝟏)
𝒏=
𝐥𝐧(𝟏 + 𝒊)
For the problem at hand, we get 𝑛 = 44.74 which we need to round-up to the next whole number,
i.e., 45 payments of $300 are required at the given interest rate for the annuity to surpass $15,000
at term.
4.2.3 Blocking
Especially for longer-term annuities, the entity offering the annuity is not likely to provide a fixed
interest rate for the entire term of the annuity. The investment entity may vary the rate based on
something like the 30-year United States treasury bond interest rate. In such cases, the
computation of the annuity’s value needs to be blocked into several computations.
[Link] Example
An example will illustrate the point. Ms. Gold agrees to an annuity savings plan from a bank that
stipulates a deposit of $500 at the end of each month for 10 years. The interest rate is based on the
average 30-year treasury bond rate for the past month. For the first 5 years (60 deposits), the
nominal annual rate for the annuity was 3% and for the last 5 years, the nominal annual rate was
3.5%. How much was the annuity worth at term, assuming Ms. Gold has contributed the agreed
$500 per month?
We first compute value of the annuity at the end of the initial 5 years (call it 𝑆1 ):
. 03
(1 + 12 )60 − 1
𝑆1 = 500 = $32,323.36
. 03
12
Next, compute the value of the contributions to the annuity during the second 5 years (call it 𝑆2 ):
. 035
(1 + 12 )60 − 1
𝑆2 = 500 = $32,733.06
. 035
12
We are not done because it is necessary to consider the interest accrued to 𝑆1 during the second 5
.035
years of the annuity, which is 𝑆1 (1 + 12 )60 = $38,495.27
So, the total value of the annuity at term is $32,733.06 + $38,495.27 = $71,228.33, while Ms.
Gold contributed a total of 120 × $500 = $60,000.
In a variation of the above problem, assume the term is changed to 15 years with the first 10 years
being as before but for the last five years the nominal interest rate is 6% (compounded monthly).
Further, Ms. Gold does not make further contributions beyond the first 10 years. In this scenario,
we simply need to compound $71,716.26 for another 5 years, i.e.,
. 06 60
$71,228.33(1 + ) = $96,076.34
12
[Link] Generalization
Blocking can be made even more general than what is suggested in the above example. Each block
can have a different interest rate per period, a different payment per period and a different
number of periods. So, each block is defined by three variables, i.e., interest rate, payment amount
and number of periods. If either the interest rate or payment amount changes, we start a new
block. So, these two attributes (i.e., interest rate and payment amount) determine the third
variable (i.e., number of periods in a block).
The following algorithm can be used to determine the final value of an annuity with 𝑚 blocks:
1. For each of the 𝑚 blocks, compute the accrued value of the annuity for the interval when
the block is active. This is done using the formula below for block 𝑘. The subscript 𝑘 is put
on 𝑖, 𝑅 and 𝑛 to emphasize these values can change for each block.
(1 + 𝑖𝑘 )𝑛𝑘 − 1
𝑆𝑘 = 𝑅𝑘
𝑖𝑘
2. For each 𝑆𝑘 (𝑘 = 1,2, … , 𝑚 − 1), the value continues to accrue during subsequent blocks,
based on the interest rate and number of periods for each subsequent block. So, the value
at the end of the annuity for block 𝑘 is
𝑉𝑘 = 𝑆𝑘 (1 + 𝑖𝑘+1 )𝑛𝑘+1 (1 + 𝑖𝑘+2 )𝑛𝑘+2 … (1 + 𝑖𝑚 )𝑛𝑚
3. Since there is no further accumulation of interest after the last block is finished, we have
that 𝑉𝑚 = 𝑆𝑚 .
4. The total value of the annuity at term is 𝑉 = 𝑉1 + 𝑉2 + ⋯ + 𝑉𝑚−1 + 𝑆𝑚
𝟏 − (𝟏 + 𝒊)−𝒏
𝑸=𝑹
𝒊
So, an initial investment in the amount of 𝑄 with interest rate 𝑖 per period (compounded at the end
of each period) is equivalent to 𝑛 payments in the amount 𝑅 at the beginning of each period.
(Recall Exercise 7 from Section 3.10.)
Alternately, the above formula can be solved for R in terms of the other variables to get
𝒊𝑸
𝑹=
𝟏 − (𝟏 + 𝒊)−𝒏
This is useful if one knows the interest rate, desired number of distributions and the initial
investment, and wants to determine how much can be distributed at the end of each period.
We can also solve for 𝑛 to determine how long an initial investment will last given the distribution
amount per period and interest rate, i.e.,
𝒍𝒏 𝑹 − 𝒍𝒏(𝑹 − 𝒊𝑸)
𝒏=
𝒍𝒏(𝟏 + 𝒊)
where 𝑙𝑛(𝑥) is the natural log of 𝑥 (i.e., log base 𝑒).
1−(1+𝑖)−𝑛
[Remark concerning notation: the quantity 𝑖
is often represented by a shorthand notation
in financial books and articles. The notation is usually some variation of 𝑎𝑛|𝑖 .]
4.3.2 Examples
What initial investment is needed to get a monthly payment of $750 for 20 years given a nominal
yearly interest rate of 5% (compounded monthly)?
.05
We are given 𝑅 = $750, 𝑛 = 12 × 20 = 240 and 𝑖 = 12
. Using the formula for 𝑄, we get
. 05 −240
1 − (1 + )
𝑄 = 750 12 = $113,643.98
. 05
12
As a second example, consider someone who has $100,000 to invest in an annuity with a nominal
annual interest rate of 4% (compounded monthly) and wants to have the annuity distribution
monthly for 15 years. How much can be distributed each month for the given period?
In this scenario, we are given 𝑄 = $100,000, 𝑛 = 12 × 15 = 180 and 𝑖 = .04/12, and we need to
determine 𝑅.
. 04
𝑖𝑄 ( )(100,000)
𝑅= = 12 = $739.69
1 − (1 + 𝑖) −𝑛 . 04 −180
1 − (1 + )
12
In yet another example, we want to find the number of quarters (i.e., quarter-years) that an
investment in the amount of $27,976.08 will last, given equal quarterly payments in the amount of
$1000 with a quarterly interest rate of .013.
We are given 𝑅 = $1,000, 𝑄 = $27,976.08 and 𝑖 = .013, and want to find n (the number of
quarters) the investment will last. Using the formula for n from the previous subsection, we get
The accumulated (or future) value of an annuity-due at term is similar to the formula for 𝑆 in
Section 4.2.1, except that interest is earned on each contribution for one additional period. So, we
need to multiple the formula for the accumulated value of an ordinary, simple, certain annuity by
(1 + 𝑖) to get the accumulated value for an annuity due:
(1 + 𝑖)𝑛 − 1
(1 + 𝑖)𝑅
𝑖
which can be written as
(𝟏 + 𝒊)𝒏+𝟏 − (𝟏 + 𝒊)
𝑹
𝒊
The discounted (or present) value of an annuity-due is similar to the formula for 𝑄 in Section 4.3.1,
except that all the payments are done at the beginning of each period. So, the discounted value of
an annuity-due is
𝑅 + 𝑅(1 + 𝑖)−1 + 𝑅(1 + 𝑖)−2 + ⋯ + 𝑅(1 + 𝑖)−(𝑛−1)
= 𝑅[1 + (1 + 𝑖)−1 + (1 + 𝑖)−2 + ⋯ + (1 + 𝑖)−(𝑛−1) ]
𝟏 − (𝟏 + 𝒊)−𝒏
=𝑹
𝟏 − (𝟏 + 𝒊)−𝟏
Note that the above is just (1 + 𝑖) times the formula for discounted (present) value of an ordinary,
simple, certain annuity.
college (say 5 years). At the annuity’s term (12 years from time of purchase), all the money has
been distributed back to the parents who are presumably using the money to pay college bills for
their daughter.
In general, assume
• the annuity is purchased at time 0
• there are to be 𝑛 payments (to the owner of the annuity), each in the amount of 𝑅
• the payments start at the end of period m (i.e., at time m+1)
• the interest rate per period is 𝑖.
The scenario is summarized in Figure 7.
To compute the overall present value (purchase price) of the annuity, we compute the present
value of each payment. To cover the first payment (at time 𝑚 + 1), how much needs to be invested
at time 0? If we call that quantity 𝑥1 , then we need to solve 𝑥1 (1 + 𝑖)𝑚+1 = 𝑅 for 𝑥1 . This gives us
𝑥1 = 𝑅(1 + 𝑖)−(𝑚+1) . So, 𝑥1 invested at the time 0 will be worth 𝑅 at time 𝑚 + 1. Using similar
reasoning, the present value of the second payment is 𝑅(1 + 𝑖)−(𝑚+2) , and so on. Thus, the
present value for the annuity is the sum
𝑄 = 𝑅(1 + 𝑖)−(𝑚+1) + 𝑅(1 + 𝑖)−(𝑚+2) + ⋯ + 𝑅(1 + 𝑖)−(𝑚+𝑛)
= 𝑅(1 + 𝑖)−(𝑚+1) [1 + (1 + 𝑖)−1 + (1 + 𝑖)−2 + ⋯ + (1 + 𝑖)−(𝑛−1) ]
𝟏 − (𝟏 + 𝒊)−𝒏
= 𝑹(𝟏 + 𝒊)−(𝒎+𝟏)
𝟏 − (𝟏 + 𝒊)−𝟏
If the interest rate is assumed to be different in the deferral period (call it 𝑗) from the rate during
the payment periods (call it 𝑖), then we get a more general equation for 𝑄. To be clear, it is
assumed the interest rate changes from 𝑖 to 𝑗 after the first payment. This is almost the same as
the previous equation, with the difference highlighted in bold.
1 − (1 + 𝑖)−𝑛
𝑄 = 𝑅(1 + 𝒋)−(𝑚+1)
1 − (1 + 𝑖)−1
Going back to the college expense savings example, we have the following inputs:
• 𝑚 + 1 = 7 × 12 = 84 and 𝑚 = 83
• 𝑛 = 5 × 12 = 60
.05
• 𝑖=𝑗= 12
̅ (assume interest is fixed over the entire term of the annuity)
= .00416
• assume that $2,500/month is needed during the child’s college years, so 𝑅 = $2,500.
Assuming payments and compounding are done monthly, and using the formula for 𝑄, we get
1 − (1 + 𝑖)−𝑛
𝑄 = 𝑅(1 + 𝑖)−(𝑚+1)
1 − (1 + 𝑖)−1
̅)−60
1 − (1.00416
̅)−84
= (2,500)(1.00416 = $93,811.97
̅)−1
1 − (1.00416
In a variation of the above scenario, assume that during the deferral interval, the interest rate is 6%
.06 .04
and 4% just after the payments start. Thus, 𝑗 = = .005 and 𝑖 = ̅ and using the second
= .003
12 12
formula for 𝑄, we get that 𝑄 = $89,583.59.
𝒋 = 𝒆𝒓/𝒕 − 𝟏
Alternately, one can solve for r to get
𝒓 = 𝒕 𝐥𝐧(𝟏 + 𝒋)
For example, 6% interest compounded monthly (i.e., 𝑡 = 12 and 𝑗 = .005) is equivalent to 𝑟 =
12 ln(1.005) = 0.05985 or 5.985% compounded continuously.
1 − (1 + 𝑗)−𝑛 1 − (1.0023046)−338
𝑄=𝑅 = 500 = $117,309.55
𝑗 . 0023046
4.8 Perpetuities
A perpetuity is an annuity in which regular payments begin on a fixed date and continue
indefinitely. It is sometimes referred to as a perpetual annuity.
The formula for a perpetuity is straightforward, i.e., an initial investment of 𝑆 at a per compounding
period interest rate of 𝑖 can payout 𝑅 = 𝑖𝑆 at the end of every period forever. If less than 𝑅 is paid
out per period, then the principal will increase and one can eventually increase the payout amount
(while still preserving the perpetuity). This could, for example, allow one to adapt for inflation.
In practice, such investment instruments are not offered. However, payments from an endowment
fund (e.g., for college scholarships) are similar in concept with the exceptions that the interest rate
is not guaranteed (based on multiple investments with varying returns), the endowment typically
increases based on new contributions from alumni, and only part of the investment returns are
typically distributed.
To determine the equivalent interest rate for each of the 𝑚 mini-periods, we use the formula 𝑗 =
1
(1 + 𝑖)𝑠/𝑡 − 1 (from Section 4.7.1) with 𝑠 = 1 and 𝑡 = 𝑚 to get 𝑗 = (1 + 𝑖)𝑚 − 1. Noting that there
are 𝑚𝑛 mini-periods (i.e., payments), the present value of the annuity with the m payments per
compounding period is given by
𝑅 𝑅 𝑅
𝑄𝑚 = (1 + 𝑗)−1 + (1 + 𝑗)−2 + ⋯ + (1 + 𝑗)−𝑚𝑛
𝑚 𝑚 𝑚
𝑅 1 2 𝑚𝑛
= [(1 + 𝑖)−𝑚 + (1 + 𝑖)−𝑚 + ⋯ + (1 + 𝑖)− 𝑚 ]
𝑚
𝑚𝑛
𝑅 𝑥
= ∑(1 + 𝑖)−𝑚
𝑚
𝑥=1
To get the formula for the present value of an annuity with a continuous number of payments in
each compound period, we take the limit of the above expression as 𝑚 goes to infinity, i.e.,
𝑚𝑛 𝑚𝑛 𝑛
𝑅 −
𝑥 1 −
𝑥
𝑄∞ = lim 𝑄𝑚 = lim ∑(1 + 𝑖) 𝑚 = 𝑅 lim ∑( )(1 + 𝑖) 𝑚 = 𝑅 ∫ (1 + 𝑖)−𝑥 𝑑𝑥
𝑚→∞ 𝑚→∞ 𝑚 𝑚→∞ 𝑚 0
𝑥=1 𝑥=1
The second summation in the above sequence is the right Reimann sum of the function (1 + 𝑖)−𝑥
1
from 0 to 𝑛. The typical Δ𝑥 (used in Riemann sums) is effectively replaced by which approaches
𝑚
zero as 𝑚 → ∞.
Solving the definite integral, we get
𝑛
−(1 + 𝑖)−𝑥 𝑥=𝑛 𝟏 − (𝟏 + 𝒊)−𝒏
𝑄∞ = 𝑅 ∫ (1 + 𝑖)−𝑥 𝑑𝑥 = 𝑅 [ ] =𝑹
0 ln(1 + 𝑖) 𝑥=0 𝐥𝐧(𝟏 + 𝒊)
If 𝑄∞ , 𝑖 and 𝑛 are known, we can solve for R, i.e.,
𝐥𝐧(𝟏 + 𝒊)
𝑹 = 𝑸∞
𝟏 − (𝟏 + 𝒊)−𝒏
As an example, consider two scenarios:
• Scenario A: Ordinary, simple, certain annuity with 𝑛 = 60 equal payments of $10,000 and
an interest rate of .5% per period
• Scenario B: Annuity with continuous payments over 𝑛 = 60 periods with an interest rate of
.5% per period. The continuous payments equal $10,000 in each period.
For Scenario A, the present value of the annuity is
1 − (1 + 𝑖)−𝑛 1 − 1.005−60
𝑄=𝑅 = 10,000 = $517,255.61
𝑖 . 005
For Scenario B, the present value of the annuity is
1 − (1 + 𝑖)−𝑛 1 − 1.005−60
𝑄∞ = 𝑅 = 10,000 = $518,547.67
ln(1 + 𝑖) ln(1.005)
The present value of the annuity in Scenario B is larger than the present value of the annuity in
Scenario A which is to be expected since payments are effectively distributed sooner in Scenario B.
To get the accumulated value of an annuity with continuous input investments, we take the limit as
𝑚 approaches infinity of 𝑆𝑚
𝑚𝑛−1 𝑚𝑛−1 𝑛
𝑅 𝑥 1 𝑥
𝑆∞ = lim 𝑆𝑚 = lim ∑ (1 + 𝑖)𝑚 = 𝑅 lim ∑ ( )(1 + 𝑖)𝑚 = 𝑅 ∫ (1 + 𝑖)𝑥 𝑑𝑥
𝑚→∞ 𝑚→∞ 𝑚 𝑚→∞ 𝑚 0
𝑥=0 𝑥=0
The second summation is the left Riemann sum of the function (1 + 𝑖)𝑥 from 0 to 𝑛, and thus
1
taking the limit as 𝑚 → ∞ (and 𝑚 → 0) yields the stated integral. Solving the definite integral, we
get
𝑛
𝑥
(1 + 𝑖)𝑥 𝑥=𝑛 (𝟏 + 𝒊)𝒏 − 𝟏
𝑆∞ = 𝑅 ∫ (1 + 𝑖) 𝑑𝑥 = 𝑅 [ ] =𝑹
0 ln(1 + 𝑖) 𝑥=0 𝐥𝐧(𝟏 + 𝒊)
As an example, compare the accumulated value of an ordinary, simple, certain annuity with 120
investments of $5,000 at an interest rate of .6% per period to a continuous investment annuity with
the same parameters.
For the ordinary, simple, certain annuity, the accumulated value is
(1 + 𝑖)𝑛 − 1 1.006120 − 1
𝑆=𝑅 = 5,000 = $875,015.05
𝑖 . 006
and for the continuous investment annuity, the accumulated value is
(1 + 𝑖)𝑛 − 1 1.006120 − 1
𝑆∞ = 𝑅 = 5,000 = $877,637.48
ln(1 + 𝑖) ln(1.006)
The accumulated value in the continuous case is slightly larger since money is deposited sooner,
i.e., during each compounding period rather than at the end of each compounding period.
This program computes the total value of a savings annuity over several blocks, where
• Each block has a fixed interest rate and fixed payment (i.e., investment) per period.
• The interest rate and payment amount may vary among the blocks.
• The blocks can be of different sizes, i.e., different number of periods.
There is no pop-up GUI for this program. The input and output are done via the terminal associated
with the Python code. For input to this program, a CSV file needs to be created (put this in the
same directory as the program file). The program will ask for the file name (leave off .csv when you
enter the file name). Each line of the CSV file represents one block of an annuity. The format for
each line is as follows:
interest rate per period, saving amount per period, number of periods
As an example, put the following lines in a CSV file and run the program:
0.0042, 500, 10
0.0033, 400, 25
0.0038, 300, 30
0.0045, 700, 15
0.0047, 200, 20
The output is as follows (this is displayed on the terminal associated with the Python code):
The value of each block without interest accrued during subsequent blocks:
Block 0: $5,095.57
Block 1: $10,406.20
Block 2: $9,513.95
Block 3: $10,837.29
Block 4: $4,183.74
The value of each block at the end of the annuity's term, i.e., with the interest accrued
during subsequent blocks:
Block 0: $7,283.76
Block 1: $13,698.88
Block 2: $11,177.33
Block 3: $11,902.79
Block 4: $4,183.74
month. The required input values are the initial investment amount in the annuity, the per period
interest rate (as a decimal, e.g., .05 rather than 5%), and either the desired number of payouts or
the amount of each payout (but not both).
• If, in addition to the required inputs, the number of payouts is provided, the program will
compute the amount of each payout.
• If, in addition to the required inputs, the desired amount of each payout is provided, the
program will compute the number of payouts until the annuity is depleted.
o If the desired payout amount is less than the accrued interest per period, the
payouts can continue indefinitely. In this case, the program will output “infinite” for
the number of payouts.
o If the desired payout amount is greater than the value of the original investment at
the end of the first period, then the payout is not possible and an error message is
generated (displayed on the terminal associated with the Python code).
4.11 Exercises
1. Mr. Periwinkle agrees to purchase an annuity from a bank (this is intended to be a savings
plan). He is to deposit $750 at the end of each month for 5 years, with a guaranteed
nominal annual interest rate of 3% (compounded monthly). How much is Mr. Periwinkle’s
annuity worth at term? Hint: Use the block annuity calculator with a single block. The input
is a csv file with just one line, i.e., .0025, 750, 60. Note that .0025 is the month rate based
on a 3% nominal annual interest rate.
2. Continuing with the previous exercise, assume the term and interest rate is the same but
Mr. Periwinkle asks the bank how much he would need to save each month to reach
$50,000 at the end of the term. Hint and Answer: Use the formula for 𝑅 in terms of 𝑖, 𝑆 and
𝑛 in Section 4.2.2. The answer is $773.44 (rounding up to the next cent). You can check the
answer using the block annuity calculator.
3. Joan and John Song are saving for a down payment on a house. An investment company has
offered them a savings annuity that pays a guaranteed nominal annual interest rate of 3%
(compounded monthly) for the first 30 months, which may change (depending on market
conditions) for the remaining 30 months of the annuity. However, it is guaranteed that the
interest rate will drop at most .5% during the second 30 months. The couple would like to
know how much the annuity will be worth at term if they invest $1,000 per month,
assuming the least optimistic interest rate for the second 30 months of the annuity, i.e.,
2.5%. Hint and Answer: Use the block annuity calculator with two blocks to determine that
the value of the annuity at term is $64,041.91.
4. In the previous example, assume that the Song’s really needed $75,000. If the term (5
years) and interest rates are the same, how much do they need to save each month to
reach their goal? Hint: Clearly, there are multiple possible answers here. One approach is to
increase the payment amount in the first block and leave the payment amount in the second
block at $1,000/month. Use the block annuity calculator and experiment with various
payment amounts for the first 30 months. For example, a monthly payment of $1,333 for
the first 30 months and $1,000/month in the second 30 months yields a final accrued value
of $75,070,14.
5. Mr. Trubisky has just retired early after a lucrative career as a professional athlete. He has
$10,000,000 in a savings account and would like to invest half of that amount in an annuity.
How long will the annuity last at 3% nominal annual interest rate (compounded monthly) if
he takes a payment of $50,000 per month? Hint: Use the simple annuity payout calculator.
6. After doing the computation, Mr. Trubisky realizes that his withdraw amount will last about
9.6 years. Given that he is now 35 years old, he wants the payouts to continue for 50 years.
With the interest rate conditions being the same, how much can Mr. Trubisky be paid each
month if the annuity is to last 50 years? Hint: Use the annuity payout calculator.
7. How can the block annuity calculator be used to calculate an annuity due where the
payments are made at the beginning of each period and there is one accrual period after
the last payment? Hint: Use two blocks, with the second block consisting of a $0 payment
but at the same interest rate as the first block.
8. Test out your methodology from Exercise 7 on the following annuity due: $150 payment (at
the beginning of each monthly payment period), for four years and at a nominal annual
interest rate of 6% (compounded monthly). Check your answer by using the formula for the
accumulated value of an annuity due in Section 4.4.
9. Milton invests $75,000 in a deferred annuity at a nominal annual interest rate of 4%
(compounded monthly) with the first of 90 payments to start in 5 years. Compute the
amount of the regular payments. Hint: use the deferred annuity calculator.
10. As a variation of the previous exercise, assume Milton wants to get payments of $1,175.50
per month for 90 payments with the first payment 5 years from now. How much money
does he need to invest up front in the deferred annuity? Hint: use the deferred annuity
calculator.
11. Modify the Python program for the deferred annuity calculator to support the case where
the interest rate during the time of deferral is different from the interest rate during the
payment periods. Hint: You need to add another input for the interest rate during the
deferral period, and then use that rate in the calculation of interest during the deferral
period.
12. Compute the accumulated value of a general annuity with term 13 years, where the
interest is compounded 7 times per year at a nominal annual rate of 7% and payments into
the annuity are made 23 times per year in the amount of $500 per payment. Hint: The
.07
interest rate per compounding period is 𝑖 = 7 = .01. If compounding is done at the same
7
rate as the payments, the equivalent rate is 𝑗 = (1 + .01)23 − 1 = .003032952. Next, use
the formula for the accumulated value of a simple annuity with per period interest rate 𝑗,
𝑛 = 13 × 23 = 299 and 𝑅 = 500. Check your answer with the block annuity calculator
using a csv file with the following line: .003032952,500,299.
13. Compare the present value of an ordinary, simple, certain annuity with 360 equal payments
of $2,000 at an interest rate of .005 per period with a continuous annuity of the same term,
payout, and interest rate. Hint: See the example in Section 4.9.1. Answer: $333,583.23 for
the ordinary, simple, certain annuity and $334,416.49 for the continuous annuity.
5 Repayment of Loans
5.1 Amortization of Loans
Solving for A and noting that the terms in the square brackets constitute a geometric series whose
sum we know how to calculate from Section 2.1.2, we get
𝑖𝑃(1 + 𝑖)𝑛
𝐴=
(1 + 𝑖)𝑛 − 1
which can be rewritten as
𝒊𝑷
𝑨=
𝟏 − (𝟏 + 𝒊)−𝒏
The above formula should look familiar as it is equivalent to the formula for regular payments from
an ordinary, simple, certain annuity (see Section 4.3.1). A mortgage can be thought of as an annuity
(purchased by a lending institution such as a bank) from an individual. The discounted (present)
value of the annuity (𝑄) is the amount of the mortgage (𝑃), and the annuity payments (𝑅) are
essentially the periodic amortization payments (𝐴).
As an example, consider a $200,000 mortgage at a 6% nominal annual interest rate with payments
due each month. The term of the mortgage is short (just 10 years). The 6% nominal annual interest
.06
rate means the monthly interest rate is 12
= .005.
The monthly payment is 𝐴 = $2,220.41 which we round up to 𝐴̂ = $2,221. Using the formula from
Step 4 in the above algorithm gives us the amount of the final payment:
(1 + 𝑖)𝑛 − (1 + 𝑖) (1.005)120 − 1.005
(1 + 𝑖)𝑛 𝑃 − 𝐴̂ = (1.005)120 (200,000) − (2,221) = $2,124.32
𝑖 1.005
Alternately, we could round the payments to the nearest multiple of $10 ($2,220 in this case) and
then calculate the final payment, i.e., $2,287.20 which as one would expect, is slightly higher than
the other 119 payments of $2,220.
We could even round to the nearest multiple of $100 (i.e., $2,200) and compute the final payment,
i.e., $5,544.78.
In terms of rounding down, keep in mind that the loanee is expected to pay at least the amount of
interest owned each period, and so we cannot go beyond that limit.
In terms of rounding up, it is possible to round up to the point where some of the last several
payments are not needed since all the principal is already paid off.
𝒊𝑷(𝟏 + 𝒊)𝒏 𝒊𝑩
𝐴= 𝒏
− 𝒏+𝟏
(𝟏 + 𝒊) − 𝟏 (𝟏 + 𝒊) − (𝟏 + 𝒊)
which is equivalent to
(1 + 𝑖)𝑛 − 1
(1 + 𝑖)𝑛 𝑃 = 𝐴
𝑖
The above can be rewritten as
1 − (1 + 𝑖)−𝑛
𝑃=𝐴
𝑖
1−(1+𝑖)−𝑘
Subtracting 𝐴 from both sides, we get
𝑖
payments (for the new loan) are less than that for the remaining part of the existing loan up to a
nominal annual interest rate of up to a little more than 5.86% but less than 5.92%.
The first line of the Table 4 below is the status quo, i.e., keep the existing loan and do not
refinance. The amount listed under “total payments” in the first line is actually about left to be paid
under the conditions of the existing loan.
Table 4 was generated by the “Loan Refinance - Breakeven Interest Rate Analyzer”, see Section
5.5.5 for a description of this program.
• number of periods that have transpired in the initial loan when the new loan is to start
• the amount of penalties on termination of the initial loan plus the cost of the new loan
• interest rate per period where the analysis is to start
• number of periods for the new loan
• number of payments per year for the new loan.
It is assumed that the period for the original loan (e.g., a month) is the same as the period for the
new loan.
The program prepares a list of scenarios for various interest rates up to the point where the
refinancing rate leads to a situation where the remaining payments are more than that of the
original loan.
The output of the analysis is sent to a file named breakeven_int.csv. An example output (with some
reformatting) is shown in Table 4.
5.6 Exercises
1. Complete Table 3 and generate the entire repayment schedule. Hint: Use the “Compute
Interest – Principal breakdown” feature in the amortization calculator.
2. Assume that a potential home buying couple has determined that they can afford a
maximum of $1,500 per month for a home mortgage. Further, they have found the best 15-
year mortgage rate to be 3%, the best 20-year mortgage rate to be 3.5% and the best 30-
year mortgage rate to be 3.75%. For all three scenarios, assume that payments on the
mortgage are made monthly. What is the maximum mortgage (initial principal) that they
𝑖𝑃(1+𝑖)𝑛
can afford? Hint: Solve the equation 𝐴 = (1+𝑖)𝑛 for 𝑃 and use the derived formula to
−1
determine the value for P in each of the three cases. Check your calculations using the “Max
affordable loan given interest rate …” feature in the amortization calculator. Answer: In
terms of being able to afford the most expensive house, the 30-year mortgage is the best
option. It allows the couple to purchase a $323,893.22 house.
3. For a $300,000 30-year mortgage at a nominal annual interest rate of 4% with monthly
payments back to the lender, determine the amount of the monthly payments. Adjust the
monthly payment to the nearest multiple of $10 and determine the final payment in this
case. Hint: Use the formula from Step 4 in Section 5.1.3. Answer: From the amortization
calculator, we determine the monthly payment to be $1432.25. So, the adjusted monthly
payment (to the nearest $10) is $1,430 and the final payment (based on the modified
monthly payment) is $2,988.76. If we just wanted to eliminate the cents (i.e., pay $1432 per
month), the final payment would be $1602.66. If we adjust the monthly payment to the
nearest multiple of $100 (i.e., $1,400), then the final payment is a surprising $23,780.24.
4. Continuing with the previous problem, how many payments would it take if the monthly
payment is increased to $1,500? Hint: Use the simple annuity payout calculator with
$300,000 as the initial investment (from the point of view of the loaning entity) and $1,500
as the amount of each payout. Note that you need to enter the monthly interest as a
decimal, i.e., .04/12 = .003̅. So, with a modest increase in the monthly payment, one can
pay off this mortgage in 330.13 months or about 2.5 years early.
5. For a car loan of $30,000 at a nominal annual rate of 2% (compounded monthly) for 3 years,
and a balloon payment of $15,000 at the same time as the last monthly payment, how
𝑖𝑃(1+𝑖)𝑛 −𝑖𝐵
much is each monthly payment? Hint: Use the balloon formula, i.e., 𝐴 = (1+𝑖)𝑛 −1
, and
check your answer with the balloon loan calculator. Answer: $454.64.
6. Continuing with the previous exercise, how does the answer change if the loanee makes the
balloon payment one period after the last regular payment? Hint: Use the alternate formula
at the end of Section 5.2.1. Answer: $455.31 which is slightly more than the answer to
Exercise 5, as expected since the balloon payment is made a month later.
7. Jedediah (goes by “Jed”) has a 30-year mortgage in the amount of $5 million at a nominal
annual interest rate of 3% (compounded monthly and with monthly payments back to the
bank). How much is the balance on the mortgage at the end of 73 months? Hint: Use either
of the formulas for the remaining balance from Section 5.3. Check your answer with the loan
.03
refinance calculator (with 12 = .0025 for the interest rate per period). Use the amount 0 in
the penalties and costs field. The interest rate and number of periods for the refinanced loan
are not relevant, but to avoid an error, use . 0025 and 360.
8. Continuing with the previous exercise, Jed has the opportunity (73 months into the original
mortgage) to refinance at a 1% nominal annual interest rate (compounding and payments
are monthly). The new mortgage would be for 30 years. There is no cost to terminate the
original mortgage (as written in the mortgage agreement if he uses the same bank to
refinance, which he is doing) but the new mortgage costs $55,000. Should Jed refinance,
assuming he intends not to sell the house in the next ten years? Hint: Use the loan
refinancing calculator.
9. Continuing with the previous exercise, what is roughly the highest interest rate (above 1%
and less than 3%) at which it still makes sense for Jed to refinance in terms of having a
lower total (remaining) payments? Hint: Use the “Loan Refinance - Breakeven Interest Rate
Analyzer.”
6 Bonds
6.1 Terminology
A bond is a fixed income instrument that represents a loan made by an investor to a borrower
(usually a corporation or government). When an entity needs to raise money for a long period of
time (e.g., a city looking to build a sports stadium), they issue bonds (also known as debentures)
which are sold to investors. Bonds are a form of debt.
A bond is essentially a contract between the issuer (borrower) and the investor (lender) that
specifies:
• The face value, or the denomination, of the bond, which is stated on the front of the bond.
This is usually (but not always) the amount of money to be paid to the borrower when the
bond matures.
• The date of maturity (also known as the redemption date) is when the loan will be repaid.
In some cases, it is possible to redeem a bond after the maturity date but typically, no
interest is accumulated after the maturity date. For example, United States Series EE
savings bonds can be held beyond the maturity but no interest accrues after the maturity.
• The rate of interest that the bond issuer pays the borrower is known as the coupon rate. It
is critical to keep in mind that the coupon rate is on the face value of the bond and not on
the purchase price of the bond.
o There is also something called a zero-coupon bond which does not have a coupon
rate and does not pay regular interest to the holder but rather is sold at a discount
and renders a profit at maturity when the bond is redeemed for its full face value.
• The price at which the bond issuer originally sells the bonds is known as the issue price.
Since bonds can be resold, there could be additional purchase prices. It is important to note
that the coupon rate does not change when a bond is resold.
• The amount of money that will be paid on the date of maturity is known as the redemption
value. If the redemption value is the same as the face value, the bond is said to be
redeemed at par.
• The yield of a bond is the rate of return the bond generates. This is not to be confused with
a bond’s coupon rate which is based on the face value of a bond.
o An example may help distinguish the two concepts. If a $100 bond with a 6%
coupon rate sells for $100, then the current yield is also 6%. However, because of
market price fluctuation, it may be possible to purchase this bond for the price of
$80. So, if a $100 (face value) bond is purchased for $80, the yield is 7.5% since the
$6 annual coupon payment is now 7.5% of the $80 purchase price. If the $100 (face
value) band was purchased for $120, then the yield will be just 5%.
A callable bond (also known as a redeemable bond) allows the issuer to redeem the bond before it
reaches the stated maturity date. In other words, on the call date, the bond issuer has the option
(not the obligation) to buy back the bond from the bond holder at a defined call price. The issuer of
a callable bond may choose to call their bonds if market interest rates move lower, and then re-
issue another series of bonds at a lower rate. Callable bonds compensate investors for the
possibility of the bond being called by offering a higher interest rate than comparable non-callable
bonds.
Savings bonds (as offered by the United States Treasury) can be redeemed any time after the
maturity date. The investor (bond holder) will receive the face value of the bond (typically the
purchase price) plus accrued interest.
Marketable bonds (e.g., corporate bonds or government bonds) do not allow for redemption
before the maturity date. If the holder of a marketable bond needs to liquidate a bond before the
maturity date, the holder must sell the bond on the open bond market at a price that depends on
current interest rates and other market factors (e.g., the financial stability of the bond issuer).
The payout timeline for the type of bond described above is shown Figure 9.
In the case that a 6% yield is desired, 𝑦 = 𝑗 = .03 and the price should be set at the redemption
value of $1,000. As noted previously, when the redemption value and face value are equal, a bond
is said to be purchased at par.
In the case a 4% yield, we have 𝑦 = .02. It should be emphasized the 𝐴 does not change. Using the
balloon loan calculator, the required price to give the desired yield is $1,089.83. Since the bond is
being purchased for more than its redemption value, it is said to be purchased at a premium. Such
1,089.83
a bond would be listed as 1,000
× 100 ≅ $108.99 (it is typical to list a bond’s price per $100 of
face value).
In the case of an 8% yield, we have 𝑦 = .04. Using the balloon loan calculator, the required price to
produce the desired yield is $918.89. Since the bond is being purchased for less than its redemption
value, it is said to be purchased at a discount. The price of this bond would typically be listed as
$91.89 (i.e., the price per $100 of face value).
In general, as the yield increases, the bond price drops and vice versa. For example, assume Abe
purchases a bond with a 6% coupon rate (compounded semi-annually), a face value (with equal
redemption value) of $1,000 and a term of 5 years. Abe decides to sell his bond after 2.5 years.
Excluding brokerage fees, for how much should Abe expected to sell his bond?
First, note that Abe is basically selling a 2.5 year bond at this point with a redemption value of
$1,000. We need to compare this to other bonds with a 2.5 year term. Assume that such bonds
now (at the time Abe wants to sell) have an average coupon rate of 7% (semi-annual
compounding). Thus, the price estimate should be based on a bond with 𝑦 = .035, 𝐴 =
(.03)(1,000) = 30 and 𝑛 = 5. The key here is the A remains at $30 (the bond issuer does not
change their conditions when the bond gets sold). Using the balloon loan calculator, an estimate
for price of the resold bond is $977.42. This is different from the 3.5% row in Table 5, because the
calculations in Table 5 are based on 𝑛 = 10 periods.
1−(1+𝑖)−𝑛
If we use the annuity notation mentioned in Section 4.3.1 (i.e., 𝑎𝑛|𝑖 = 𝑖
), the price formula
for a bond (from Section 6.2) can be written as
𝑃 = 𝐴𝑎𝑛|𝑦 + 𝐵(1 − 𝑦𝑎𝑛|𝑦 )
and with some rearrangement, we get
𝑃 − 𝐵 = (𝐴 − 𝑦𝐵)𝑎𝑛|𝑦
If 𝑃 > 𝐵 (i.e., purchase price exceeds redemption value), the bond is purchased at a premium.
From the formula above, the amount of the premium is 𝑃 − 𝐵. The above formula also provides
another way to characterize a premium bond purchase, i.e., when 𝐴 − 𝑦𝐵 > 0. In other words, if
the coupon exceeds the periodic yield (i.e., effective interest paid on the redemption value of the
bond for a period), then the bond is purchased at a premium. If the redemption value equals the
face value, then 𝐴 = 𝑗𝐵 (where 𝑗 is the periodic coupon rate). Substituting 𝐴 = 𝑗𝐵 into 𝐴 − 𝑦𝐵 >
0, we get (𝑗 − 𝑦)𝐵 > 0 which implies 𝑗 − 𝑦 > 0 (i.e., a bond is purchased at a premium if the
coupon rate is greater than the yield).
Similar, if 𝑃 < 𝐵 (equivalently, 𝐴 − 𝑦𝐵 < 0 or 𝑗 − 𝑦 < 0), then the bond is purchased at a discount.
Of course, if a bond is purchased at its redemption value (assuming this is the same as the face
value) then 𝑃 = 𝐵, 𝐴 = 𝑦𝐵 and 𝑗 = 𝑦.
We now return to the accounting/tax issue mentioned at the beginning of this subsection. If a bond
is purchased at a premium, the redemption amount (not the purchase amount) is returned to the
bond holder on the redemption date and in effect, the bond holder will incur a loss. Depending on
the applicable tax laws for the bond holder, there are at least two cases:
• This loss can be applied against the bond holder’s income at the time of redemption, i.e.,
for a given tax year.
• Alternately, the bond holder could allocate (i.e., distribute) the loss over each bond interest
period (over several tax years with the exception of short term bonds that do not span
more than one year).
For each period, the book value adjustment (loss in this case) is subtracted from the coupon
payment and thus reduces the taxable income. For example, if the bond scheduling technique is
used, the taxable amount on the bond from period 1 is $3,446.32 rather than $4,000.
The computations are as follows:
• (interest on book value for period 𝑘) = (periodic yield) times (book value from period 𝑘 − 1)
• (book value adjustment for period 𝑘) = (coupon) minus (interest on book value for period
𝑘).
The coupon rate is 𝑗 = .04/2 = .02, the yield rate is 𝑦 = .05/2 = .025, and 𝑛 = 10. Since the 𝑗 <
𝑦, we can conclude the bond has been purchased at a discount. Using the bond schedule creator,
we get the schedule shown in Table 7. Note that the amounts in parentheses are meant to be
negative (this is a convention in accounting).
Mr. Everest can choose to pay tax on the realized gain of $2,188.02 in the final year of the bond’s
terms, or distribute the gains over the life of the loan (by the amounts shown in the book value
adjustment column). In either case, he needs to pay taxes on the coupon payments received each
year. The formulas for the calculations are the same as those used to construct Table 6.
[Author’s remark: Showing the book value adjustments as negative in Table 7 seems odd to me
since the amounts are being listed as profits on one’s tax return. I have a similar comment on Table
6. I guess the idea is for the Interest on Book Value plus the Book Value Adjustment to equal the
Coupon.]
bond starting at time 0 and going through the end of period 4 (the other 55 periods are not shown
in the table). Each period is divided into 8 equal time intervals. (There is nothing special about 8.
The point is to get a few representative points for the graph in Figure 11.)For example, the dirty
115
price of the bond at time 2 184 is $9,214.59 (shown in bold in the table). The column on the
extreme right (Diff) shows the difference between the dirty bond price at the end of one interval
and the beginning of the next (just before and after a coupon payout). For example, the difference
between the price at the end of period 0 (just before the first coupon payout) and the beginning of
period 1 (just after the first coupon payout) is $9,219.75 - $9,157.24 = $62.51 (see the shaded cells
table below). The difference should be exactly the coupon payout amount 𝐴 but there is a small
rounding error in the calculations.
The fact that the dirty price drops by exactly 𝐴 at the end of a period can be proven as follows
(noting that 𝑘 is 1 just before the end of a period and 0 at the beginning of a period):
Take the dirty price of a bond just before the end of a period with 𝑚 remaining coupon
payments and subtract the dirty price of the bond at the beginning of the next period (at
which point there are 𝑚 − 1 coupon payments remaining) to get the following (with terms
in bold cancelling each other):
−(𝑚−1)
1 − (1 + 𝑦)−𝑚 1 − (1 + 𝑦) −(𝑚−1)
(1 + 1 ∙ 𝑦) [𝐴 + 𝐵(1 + 𝑦)−𝑚 ] − (1 + 0 ∙ 𝑦) [𝐴 + 𝐵(1 + 𝑦) ]
𝑦 𝑦
(1 + 𝑦) − (1 + 𝑦)−(𝑚−1) 1 − (1 + 𝑦)−(𝑚−1)
=𝐴 + 𝑩(𝟏 + 𝒚)−(𝒎−𝟏) − 𝐴 − 𝑩(𝟏 + 𝒚)−(𝒎−𝟏)
𝑦 𝑦
𝐴𝑦 𝟏 − (𝟏 + 𝒚)−(𝒎−𝟏) 𝟏 − (𝟏 + 𝒚)−(𝒎−𝟏)
= +𝑨 −𝑨 =𝐴
𝑦 𝒚 𝒚
1 9,157.24 9,166.45 9,175.67 9,184.88 9,194.10 9,203.31 9,212.53 9,221.74 9,230.96 62.51
2 9,168.46 9,177.69 9,186.91 9,196.14 9,205.36 9,214.59 9,223.81 9,233.04 9,242.27 62.50
3 9,179.76 9,189.00 9,198.23 9,207.47 9,216.71 9,225.95 9,235.18 9,244.42 9,253.66 62.51
4 9,191.16 9,200.41 9,209.66 9,218.91 9,228.15 9,237.40 9,246.65 9,255.90 9,265.15 62.50
The points in Table 8 are plotted on the graph shown in Figure 11. Each upward line represents one
period (one row from the table). The drop-off from one period to another is actually discontinuous,
i.e., the downward lines should not be in the figure (limitation of the plotting tool used).
The reason for the increase in the price over a period is that the dirty price reflects the accrued
interest on the coupon before it is paid out at the end of the period. Look at it this way, if the price
did not reflect the accrued interest on the coupon, everyone would buy bonds just before the
coupon dates and immediately get the coupon payment for the previous period.
The clean price of a bond (also known as the flat price) considers the accrued interest on the bond
since its last coupon payment date. The clean price equals the present value of the bond's future
cash flows (i.e., the dirty price) minus the interest earned on the bond between the last payment
date and the transaction date. Most financial markets (particularly in the US) quote bonds using
their clean prices. Accrued interest is added back to the quoted price to determine the purchase
price. So, bonds are typically advertised at their clean price and sold at their dirty price.
In terms of equations, we have the following definitions:
• Accrued interest: 𝐼𝑘 = 𝑘𝐴 where 𝑘 is the fraction of a given coupon period that has
transpired at settlement time (i.e., time of purchase).
• Clean price: 𝐶 = 𝐷 − 𝐼𝑘
Table 9 shows the clean prices corresponding to the dirty prices in Table 8.
Table 9. Clean Price Changes over Time for a Bond
Period 0 23/184 46/184 69/184 92/184 115/184 138/184 161/184 <1
The points in Table 9 are plotted on the graph shown in Figure 12. This would be a straight line but
for some rounding errors in the computations.
100
The purchase price per $100 of face value is 47,811.98 × 50,000 = 95.62396. The redemption value
is equal to the $100 per $100 of face value. The frequency is 2.
If the following is entered in an Excel cell, the result is 0.050000019 (not exact but pretty good):
= YIELD(DATE(2000,1,1), DATE(2005,1,1),0.04,95.62396,100,2)
When using the balloon loan calculator for bonds, one enters the yield (in the “interest rate per
period” field), total number of payments, redemption value (in the “amount of balloon payment”
field) and the coupon amount (in the “amount of each periodic payment” field).
6.7 Exercises
1. Compute the price of a 10-year zero coupon bond that effectively yields 3.5% per year
(under the assumption of yearly compounding). The redemption value of the bond is
$15,000. Answer: Use the formula for the bond price from Section 6.2 with 𝐴 = 0 (since
there is no coupon) and 𝐵 = 15,000 to get the result 𝑃 = 15,000(1 + .035)−10 =
$10,633.78. Note: If no compounding is assumed, then we need to compute the present
15,000
value of 15000 under the assumption of simple interest, i.e., 𝑃 = 1+10(.035) = $11,111.11.
2. Compute the price of a 5-year bond with semi-annual coupon payments at a nominal
annual rate of 5%. The redemption and face value are the same, i.e., $50,000. The nominal
annual yield rate is 4% (compounded semi-annually). Hints: Use the balloon loan calculator
.05
in the manner described in Sections 6.2 and 6.6.1. The coupon is 2 (50,000) = 1,250.
Answer: $52,245.65
3. Is the bond from Exercise 2 purchased at a premium, at a discount or at par? Answer: The
coupon rate is higher than the yield. So, the bond is purchased at a premium.
4. Using the information from Exercise 2, create a table that shows the bond price for the
following nominal annual yields (again assuming semi-annual compounding): 2%, 3%, 4%,
5%, 6%, 7% and 8%. Hints: This is similar to the example in Section 6.2.3. Don’t forget to
convert the nominal annual yields to semi-annual yields. Also, keep in mind that the coupon
is the same for all cases in this exercise. Answer:
5. For the bond described in Exercise 2, create bond schedules for two cases, i.e., when the
yield is 3% and 7% (semi-annual compounding in both cases). Hint: Use the bond schedule
creator.
6. Compute the dirty (full) price for a 20-year US Treasury bond that is to have an annual yield
of 1% (compounded semi-annually), an annual coupon rate of 1.25% (interest paid semi-
annually) and redemption value (same as face value in this case) of $25,000. The settlement
(purchase) date is 15 June 2020 and the redemption (maturity) date is 31 August 2030.
Hints and answer: Clearly, the bond is being resold since the settlement date is far less than
20 prior to the redemption date. The coupon dates are August 31st and March 3rd (note the
issue with February having only 28 days) and so there are 21 coupon payments remaining,
i.e., 𝑛 = 21. Use the balloon calculator to compute the price of the bond at the time of last
coupon payment before the settlement date which is $25,621.50 (this is P in the formula for
the dirty price from Section 6.4.1). Use the online application at
[Link] to count the number of days from 3
March 2020 to 15 June 2020 (105 days), and between 3 March 2020 to 31 August 2020 (182
105
day) which means that 𝑘 = ≅ .5769. Applying the dirty price formula, we get 𝐷 =
182
𝑃(1 + 𝑘𝑦) ≅ 25,621.50(1 + (. 5769)(. 005)) ≅ $25,695.41. If we use the alternate formula
for the dirty price, we get 𝐷 = 𝑃(1 + 𝑦)𝑘 ≅ $25,695.33.
7. Using the simple interest version of the dirty price formula, show that the clean price can
be represented by the formula 𝐶 = 𝑃 + 𝑘(𝑦𝑃 − 𝑖𝐵) with 𝑃, 𝑘, 𝑦, 𝑖 and 𝐵 as defined in
Section 6.4.1. Hint: Assume that the face value is redemption value and thus 𝐴 = 𝑖𝐵.
8. For the bond described in Exercise 6, compute the clean price. Answer: 𝐶 = 𝐷 − 𝑘𝐴 ≅
25,695.41 − .5769(156.25) ≅ $25,605.27.
7 Capital Budgeting
This section covers some financial concepts that help in decision making with regard to business
investments and the incremental cash flows that results from such investments. The reader is
assumed to be familiar with cash flow and how it is different from profit. For a refresher on cash
flow and profit, see the YouTube video “What is a cash flow statement?” [8] and the Investopedia
article on cash flow [9]. For a more extensive discussion of cash flow analysis and capital budgeting,
see Chapters 12 and 13 of The Basics of Finance [6].
[Author’s Remark: While I have not provided any Python programs in support of this section, there
is an Excel spreadsheet that covers many of the computations related to the examples. It is
recommended that you have this spreadsheet in hand when reading this section. For a summary of
the various sheets within the spreadsheet, see Section 7.6.]
Alice and Bob know their business well and are able to make (in their opinion) reasonably accurate
projections of cash flows for the business expansion (as a result of the planned expansion). The
problem at hand is to compare the projected cash flows against the three alternative investment
options.
Table 12 shows Alice and Bob’s projected cash flows concerning Acme Furniture after the planned
expansion.
• The top row is time in half-year increments, up to the end of year number 5.
• The second row contains the cash inflows to Acme Furniture, e.g., sales of furniture.
• The third row contains the cash outflow, e.g., the initial investment, supplies, wages.
• The bottom row shows net cash flows for each 6-month period. In this example, there is
only a net outflow at time 0. However, in general, any of the periods could be a net inflow
or outflow of cash.
(Note: In the examples that follow, we usually only show the net cash flow for each period and omit
the details concerning cash inflows and outflows.)
Recall from Section 3.7 that we can compare the value of money realized at different times by
computing the various values at some common focal date. For the problem at hand, we will use the
time of the initial investment (i.e., time 0) as the focal date and compute the value of the various
net cash flows for each period based on their value at the focal date. In general, we make the
following assignment
• let 𝐶0 be the initial investment
• let 𝐶𝑘 be the net cash flow for period 𝑘 which ends at time 𝑡𝑘 (measured in time periods,
e.g., half-years, quarters or months)
• 𝑖 is the interest rate per period, i.e., the cost of capital
• 𝑛 is the number of cash flows.
With the above assignments, the general formula for net present value is given by
𝑛
The formula allows for the cash flows to be unequally spaced in terms of the number of periods.
For example, we could have cash flow estimates at periods number 3, 5, 11 and 13. In this case,
𝑛 = 4, 𝑡1 = 3, 𝑡2 = 5, 𝑡3 = 11 and 𝑡4 = 13. However, it is more usual to have a net cash flow
estimate for each period, in which case, 𝑡𝑘 = 𝑘 and the formula becomes
𝑛
Getting back to the problem at hand, we can use the Microsoft Excel function NPV to compute the
NPV for each of the 3 cost of capital scenarios, i.e., 2%, 4% and 6% semi-annual rates. The Excel
NPV function is easy to use. The first parameter is the rate of return and the following parameters
are the net cash flows for each period (see [Link]
function-8672cb67-2576-4d07-b67b-ac28acf2a568 for further details). The results are summarized
in Table 13 (the parenthesis indicate a negative NPV). For 2% and 4%, Acme Furniture will have a
positive NPV and thus it makes sense to go ahead with the expansion in these two cases. However,
at 5%, the NPV is negative and it may not be a good idea to go forward with the expansion in this
case.
For the sake of argument, let’s say that Alice and Bob think that the risk in expanding their business
is similar in risk to the 6% cost of capital alternative. [This is a key point, i.e., the cost of capital
needs to be at the same estimated risk as the proposed investment!] With the given information,
they should not go forward with their business expansion. However, it may be that consideration of
a longer time frame for the cash flows will change the decision. For example, assume Alice and Bob
are able to project the cash flow for a 6th year, as shown in Table 14.
Table 14. Initial Investment, and Cash Flow in Half-year Increments - Revised
0 .5 1 1.5 2 2.5 3 3.5 4 4.5 5 5.5 6
(225,000) 20,000 22,000 24,000 26,000 28,000 30,000 32,000 34,000 36,000 38,000 41,000 44,000
The two extra semi-annual cash flow projections change the investment analysis, as shown in Table
15. With the extra year of cash flow taken into consideration, it now makes sense to go forward
with the business expansion, even for the case of a 7% return on the alternative investment. It is
not until about 8% where the alternative investment makes more sense.
Table 17 shows an analysis of the potential investment at various costs of capital (keeping in mind
that the cost of capital refers to alternative investments). The project’s cash flows outweigh the
alternative investments up to and including a quarterly rate of 2.25%. At 2.5%, it may make more
sense not to invest in the resort but rather in the alternative investment. On the other hand, the
2.5% alternative investment may be very risky (perhaps junk bonds and small growth stocks) and
the resort improvement investment may be seen as much more certain than the 2.5% alternative
investment. The point is that the final decision by the resort owners is not black and white, and the
NPV analysis is just one tool to help with their decision.
Operating Cash Flow $ 7,500 $ 10,000 $ 12,500 $ 15,000 $ 15,000 $ 17,500 $ 20,000
Net Cash Flow $(70,000) $ 7,500 $ 10,000 $ 12,500 $ 5,000 $ 15,000 $ 17,500 $ 20,000
The operating and investment cash flows are added to get a net cash flow for each period, and we
proceed as before to compute the NPV for various rates of return, as shown in Table 19. The
investments in the project make financial sense up a little over a 5% rate for the cost of capital.
Pessimistic (625,000) 50,000 55,000 60,000 65,000 70,000 75,000 80,000 85,000 90,000 95,000
Optimistic (625,000) 60,000 66,000 72,000 78,000 84,000 90,000 96,000 102,000 108,000 114,000
Table 21 lists the NPV results for the optimistic and pessimistic cases. For the pessimistic case, the
net cash flow is only positive up to 2.5%. The optimistic case has a positive cash flow up to 5.5%.
Mr. Throckmorton could, for example, make his decision based on a compromise between the
optimistic and pessimistic scenarios, and use 4% as the cut-off point, i.e., if he can get more than
4% with an alternative investment of similar risk to the restaurant business then he should not go
ahead with the restaurant business.
Table 22. Acme Furniture - Cash Flow Estimates with Loan Repayments
Time in years 0 .5 1 1.5 2 2.5 3 3.5
Operating Cash Flow 20,000 22,000 24,000 26,000 28,000 30,000 32,000
Investment Cash Flow (225,000) (5,069) (5,069) (5,069) (5,069) (5,069) (5,069) (5,069)
Net Cash Flow (225,000) 14,931 16,931 18,931 20,931 22,931 24,931 26,931
Table 23 shows the NPVs for various rates of return for alternative investments. In this scenario,
there is positive NPV up to and including 5%. Recall from the associated scenario without the loan
that it still made business sense to go ahead with the improvements to Acme Furniture up to
something over 7% but less than 8%. This is to be expected since the loan decreases net cash inflow
for each period.
Table 23. Investment Analysis for Acme Furniture with Loan Repayments
Semi-annual NPV
Cost of Capital
2% $53,625.16
3% $34,429.15
4% $17,289.98
5% $1,971.44
6% ($11,732.98)
In the above example, the length of the loan and the project were the same. If the term of the loan
was
longer than the project, then the results of the NPV analysis would not accurately reflect the value
of the proposed capital expenditure since one is not considering the effects of the loan on cash
flow after the end of the project. To address this type of problem one could extend the project
length to coincide with the length of the loan but that could involve making long-term (and likely
inaccurate) cash flow projections.
Table 24. Cash Flows for Projects A and B based on Same Initial Investment
Time in Years 0 1 2 3 4 5 6 7 8
Project A (155,000) 20,000 20,000 30,000 40,000 30,000 30,000 25,000 5,000
Project B (155,000) 50,000 10,000 20,000 20,000 20,000 30,000 25,000 25,000
Table 25 shows the computed NPVs for Projects A and B at various costs of capital. For lower rates
(from .02 to .035), Project A has a higher NPV and would thus be a slightly better choice for
investment. For rates between .04 and .06, Project B has a higher NPV and would be a better
choice in this case. For rates higher than .06, the NPV is negative for both projects. In this case, it is
better to put the capital into the alternative investment.
which is equivalent to
𝑛
𝐶0 = ∑ 𝐶𝑘 (1 + 𝑖)−𝑘
𝑘=1
In words, we are looking for the value (or values) of 𝑖 such that the initial investment equals the
present value of the subsequent cash flows resulting from the initial investment.
The decision rules concerning the IRR are as follows:
• If the IRR is greater than the cost of capital, go forward with the project.
• If the IRR is less than the cost of capital, do not go forward with the project.
• In the unlikely event that the IRR exactly equals the cost of capital, the analysis is indifferent
as to whether the project should go forward or not.
The existence of two IRRs can be seen by graphing the equation for the NPV as a function of 𝑖
(divided by 1000 to simplify the equation), i.e.,
−10 + 10(1 + 𝑖)−1 + 11(1 + 𝑖)−2 + 13(1 + 𝑖)−3 + 10(1 + 𝑖)−4 − 37(1 + 𝑖)−5
The graph of the NPV as a function of 𝑖 is shown in Figure 13. In the graph, the y-axis is the NPV and
the x-axis represent the cost of capital 𝑖. As one can see, the graph crosses the x-axis around .05
and then again around .83. The Microsoft Excel IRR function has an optional parameter called
“guess” that allows one to start the numerical algorithm for root determination around a given
value. This is exactly what is needed in the case of several IRRs. If we use a guess of .05, the IRR
function in Excel returns the more precise value of .0507, and if we guess .8, the Excel IRR function
returns the value of .8243. Thus, the two IRRs are 5.07% and 82.43%. Between these two values,
the NPV is positive and it makes sense to go ahead with the initial investment of $10,000. For
values of 𝑖 less than 5.07% or greater than 82.43%, the NPV is negative and so, the initial
investment is not advised in these cases (at least not based on IRR analysis).
The possibility of multiple IRRs is one of the shortcomings with this approach to capital budgeting.
As we shall see in Section 7.3, there is a modification to the IRR concept that eliminates the
possibility of multiple solutions to the equation 𝑁𝑃𝑉 = 0.
• The IRR approach assumes that net cash flows are reinvested at the internal rate of return.
This can lead to extreme overestimates of the future value of a project. Issues with the IRR
approach are well explained in an article from McKinsey & Company [12].
[Author’s remark: The above assumptions are common in finance books and articles, but have
nothing to do with the actual computation of the NPV or IRR. It is the decision of the party involved
concerning what interest rate they use to compute the reinvestment value of the net cash flows. In
fact, the net cash flows could be spent in a subsequent period and not reinvested at all.]
The Modified Internal Rate of Return (MIRR) is a measure of an investment's attractiveness. It is
used in capital budgeting to rank alternative investments of equal size. The MIRR is a modification
of the IRR concept and as such aims to resolve some problems with the IRR.
The MIRR is calculated as follows for a given investment:
• Determine the future value of all periods with positive cash flows using the cost of
reinvestment (call it 𝑖). The calculation is done from the time of the inflow until the end of
the project. The compute value is referred to as the Terminal Value (TV) of the cash flows.
In the equations that follow, we call this value 𝑥.
• Determine the present value (at time zero) of all the periods with negative cash flows
(including the initial investment), using the cost of financing (call it 𝑗). In the equations that
follows, we call this value 𝑦.
• Determine the MIRR, i.e., the rate of return at which the value 𝑦 accumulates to the value 𝑥
by the end of the project. Assume the project transpires over 𝑛 time periods. In the
equations that follows, the MIRR is represented by the variable 𝑧.
𝒏 𝒙
𝒛 = √− ( ) − 𝟏
𝒚
where
𝑥 = ∑𝑢𝑘=1 𝐶𝑘 (1 + 𝑖)𝑛−𝑡𝑘 , 𝑦 = ∑𝑣ℎ=1 𝐶ℎ (1 + 𝑗)−𝑡ℎ and 𝐶𝑚 is the cash flow for period 𝑡𝑚 .
The MIRR is used in a manner similar to the IRR. If the MIRR for a project is greater than the cost of
capital, then go forward with the project; otherwise, do not go forward with the project. When
comparing several projects, the project with the highest MIRR is preferred. Further, the MIRR can
be used to rank projects of different sizes.
Unlike the IRR, there is only one MIRR for a given project. Further, and as noted in the definitions
above, the MIRR computation allows one to use a reinvestment rate of return 𝑖 that is different
from the MIRR itself.
As an example, consider the investment and cash flow data for a potential project in Table 27.
Assume that the cash inflows in years 2, 3 and 4 are reinvested at rate 𝑖 = .04. The cash inflow in
year 5 is at the end of the project and so, there is no reinvestment (at least not during the time
duration of the project). We now have sufficient information to calculate 𝑥.
𝑥 = 5,000(1.04)3 + 20,000(1.04)2 + 20,000(1.04)1 + 20,000 = 68,056.32
Next, we compute the net cash outflows at 𝑡 = 0, assuming a financing rate 𝑗 = .05
𝑦 = −(25,000 + 5,000(1.05)−1 ) = −29,761.90476
The MIRR is
5 68,056.32
√− ( ) − 1 ≅ 0.1799
−29,761.90476
This can be cross checked with the Microsoft Excel MIRR function, which does in fact return the
result of 17.99%. A description of the Excel MIRR function can be found at
[Link]
35c345b53524.
Using the Excel IRR function, we find that the IRR for this problem is 23.99%.
For an additional example, see the Wikipedia article on MIRR [13].
The DDP concept is very simple as can be illustrated via an example. Consider Projects A and B from
the example in Section 7.1.3, with an assumed cost of capital of 2.5%. Table 28 shows the
discounted cash flows for Project A and the cumulative sum of the discounted cash flows. As can be
seen, it is not until the end of year 6 that Project A has recovered the initial investment. (The
discounting is done with respect to time 0.)
Cash Flows (155,000) 20,000 20,000 30,000 40,000 30,000 30,000 25,000 5,000
Discounted Cash Flows (155,000) 19,512 19,036 27,858 36,238 26,516 25,869 21,032 4,104
Accumulated Discounted Cash (155,000) (135,488) (116,452) (88,594) (52,356) (25,840) 29 21,061 25,164
Flows
Table 29 shows similar calculations for Project B, which takes an additional year to break even.
Cash Flows (155,000) 50,000 10,000 20,000 20,000 20,000 30,000 25,000 25,000
Discounted Cash Flows (155,000) 48,780 9,518 18,572 18,119 17,677 25,869 21,032 20,519
Accumulated Discounted Cash (155,000) (106,220) (96,701) (78,129) (60,010) (42,333) (16,464) 4,567 25,086
Flows
Based on DPP analysis, the decision should be to go forward with Project A since it achieves
payback of the initial investment in 6 years whereas payback for Project B is not until the 7th year.
where 𝐶𝐼𝐹𝑘 stands for 𝑘 𝑡ℎ cash inflow at time 𝑡𝑘 and 𝐶𝑂𝐹𝑗 stands for 𝑗 𝑡ℎ cash outflow at time 𝑡𝑗 .
Keep in mind that the cash outflows are converted to positive numbers for the calculation of the PI.
[Author’s remarks: This looks worse that it is. It’s just a matter of computing the NPV for the cash
inflows and outflows separately and then dividing to get the PI.
Also, some (perhaps most) sources use an alternative definition of PI where the denominator only
includes the initial investment and the numerator is the sum of the present values of all other cash
flows. See, for example, the article on PI in Investopedia [16] which uses the alternate definition of
PI.]
As an example, we will compute the PI for Projects A and B from Section 7.1.3, under the
assumption of a 2.5% cost of capital:
180,164
PI for Project A = 155,000 = 1.1624
180,086
PI for Project A = 155,000 = 1.1618
The general rule is to select the project with the highest PI. So, in this case, we should go forward
with Project A (albeit by a small margin).
7.7 Exercises
1. Given an initial investment of $70,000 and projected yearly cash flows of $5,000, $7,500,
$10,000, $12,500, $15,000, $17,500 and $20,000, compute the NPV for rates of return of 2,
3, 4, 5, 6 and 7 percent. Answer: See the sheet entitled “Ex 1” in the Excel file “Capital
[Link]”.
2. For the example in Section 7.1.5, assume the term of the loan is 10 years at 3% per year
with semi-annual payments. Further, assume the project returns no cash inflows after year
6. Compute the NPV for the (semi-annual) cost of capital ranging from 2% to 8% in
increments of .5%. Hint: Use the Amortization Calculator to determine the semi-annual
payments. Answer: See the sheet entitled “Ex 2” in the Excel file “Capital [Link]”.
3. For the example in Section 7.1.5, what is the maximum amount that Alice and Bob can loan
(under the same terms as the example) and still have a positive NPV at 2% rate of return?
Hint: Use the amortization calculator to determine the semi-annual loan repayments for
different loan amounts, subtract the repayment amount from each of the cash flow
estimates in Table 14 (just for the first years) and then compute the NPV for a 2% rate of
return. You will need to experiment with several different loan amounts. Answer: For a loan
in the amount of $110,075, the NPV is about -$9.86 (at 2% cost of capital). So, for a positive
NPV (at 2% cost of capital), the loan needs to be a little less than $110,075 (assuming a 3%
nominal interest rate paid semi-annually on the loan).
4. Use the Microsoft Excel IRR function to compute the IRRs for Projects A and B in the
example from Section 7.1.6. Answer: 6.31% for Project A and 6.36% for Project B.
5. Use the Microsoft Excel MIRR function to compute the MIRRs for Project A and B in the
example from Section 7.1.6. Assume a reinvestment rate of .015 and a financing rate of
.025. Do the calculation again with a reinvestment rate of .08 and a financing rate of .06.
Answer: In the first scenario, 3.96% for Project A and 3.95% for Project B. In the second
scenario, 7.15% for Project A and 7.20% for Project B.
References
[1] Decimal separator, Wikipedia, [Link]/wiki/Decimal_separator, accessed on 19
December 2020.
[2] Brown, R., Kopp, S., Financial Mathematics: Theory and Practice, McGraw-Hill Ryerson
Limited, 2012.
[3] Broverman, S., Mathematics of Investment and Credit, ACTEX Publications, 2010.
[4] Alhabeeb, M.J., Mathematical Finance, John Wiley & Sons, Inc., 2012.
[5] Fisher equation, Wikipedia, [Link]/wiki/Fisher_equation, accessed on 21
December 2020.
[6] Peterson Drake, P., Fabozzi, F., The Basics of Finance: An Introduction to Financial
Markets, Business Finance, and Portfolio Management, John Wiley & Sons, Inc., 2012.
[7] Cost of capital, Wikipedia, [Link]/wiki/Cost_of_capital, accessed on 27 August
2020.
[8] Bennett, T., What is a cash flow statement? - MoneyWeek Investment Tutorials, YouTube
Video, [Link] accessed 16 August 2020.
[9] Tuovila, A., Cash Flow, Investopedia article and embedded video,
[Link] accessed 16 August 2020.
[10] Net present value, Wikipedia, [Link]/wiki/Net_present_value, accessed 17
August 2020.
[11] Internal rate of return, Wikipedia, [Link]/wiki/Internal_rate_of_return,
accessed 21 August 2020.
[12] Kelleher, J.C., and Justin J. MacCormack, J.J., Internal rate of return: A cautionary tale,
McKinsey Quarterly, April 2004. [Document available at
[Link]
insights/internal-rate-of-return-a-cautionary-tale]
[13] Modified internal rate of return, Wikipedia,
[Link]/wiki/Modified_internal_rate_of_return, accessed on 26 August 2020.
[14] Payback Period, Investopedia,
[Link] accessed 30 December
2020.
[15] Discounted Payback Period, Investopedia,
[Link] accessed 30
December 2020.
[16] Chen, J., Profitability Index, Investopedia,
[Link] accessed on 25 August 2020.
Index of Terms