Computational Mathematics/Information Technology

Similar documents
Lesson Exponential Models & Logarithms

Section 5.1 Simple and Compound Interest

TIME VALUE OF MONEY. Lecture Notes Week 4. Dr Wan Ahmad Wan Omar

Multiple Compounding Periods in a Year. Principles of Engineering Economic Analysis, 5th edition

troduction to Algebra

Sample Investment Device CD (Certificate of Deposit) Savings Account Bonds Loans for: Car House Start a business

Running head: THE TIME VALUE OF MONEY 1. The Time Value of Money. Ma. Cesarlita G. Josol. MBA - Acquisition. Strayer University

Copyright 2015 by the McGraw-Hill Education (Asia). All rights reserved.

Chapter 3 Mathematics of Finance

Time value of money-concepts and Calculations Prof. Bikash Mohanty Department of Chemical Engineering Indian Institute of Technology, Roorkee

Chapter 6. Learning Objectives. Principals Applies in this Chapter. Time Value of Money

3. Time value of money. We will review some tools for discounting cash flows.

ExcelBasics.pdf. Here is the URL for a very good website about Excel basics including the material covered in this primer.

Chapter 5. Interest Rates ( ) 6. % per month then you will have ( 1.005) = of 2 years, using our rule ( ) = 1.

Year 10 Mathematics Semester 2 Financial Maths Chapter 15

3. Time value of money

Time value of money-concepts and Calculations Prof. Bikash Mohanty Department of Chemical Engineering Indian Institute of Technology, Roorkee

Our Own Problems and Solutions to Accompany Topic 11

MBF1223 Financial Management Prepared by Dr Khairul Anuar

MBF1223 Financial Management Prepared by Dr Khairul Anuar

Math of Finance Exponential & Power Functions

1) Cash Flow Pattern Diagram for Future Value and Present Value of Irregular Cash Flows

Chapter 03 - Basic Annuities

Time value of money-concepts and Calculations Prof. Bikash Mohanty Department of Chemical Engineering Indian Institute of Technology, Roorkee

Chapter 1 Interest Rates

Introductory Financial Mathematics DSC1630

Mathematical Interest Theory-Week 1

Further Mathematics 2016 Core: RECURSION AND FINANCIAL MODELLING Chapter 6 Interest and depreciation

Characterization of the Optimum

Solutions to Questions - Chapter 3 Mortgage Loan Foundations: The Time Value of Money

Sequences, Series, and Limits; the Economics of Finance

Foundations of Finance

Lecture 3. Chapter 4: Allocating Resources Over Time

Chapter 9, Mathematics of Finance from Applied Finite Mathematics by Rupinder Sekhon was developed by OpenStax College, licensed by Rice University,

Financial Functions HNDA 1 st Year Computer Applications. By Nadeeshani Aththanagoda. Bsc,Msc ATI-Section Anuradhapura

Chapter 5. Finance 300 David Moore

The Time Value of Money

Chapter 5. Learning Objectives. Principals Applied in this Chapter. Time Value of Money. Principle 1: Money Has a Time Value.

Chapter 5. Time Value of Money

Mathematics for Economists

Mathematics of Finance

Lecture Notes 2. XII. Appendix & Additional Readings

Although most Excel users even most advanced business users will have scant occasion

COPYRIGHTED MATERIAL. Time Value of Money Toolbox CHAPTER 1 INTRODUCTION CASH FLOWS

Solutions to EA-1 Examination Spring, 2001

PREMIUM VERSION PREVIEW

Finding the Sum of Consecutive Terms of a Sequence

Simple Interest. Simple Interest is the money earned (or owed) only on the borrowed. Balance that Interest is Calculated On

Disclaimer: This resource package is for studying purposes only EDUCATION

Please do your work on a separate sheet of paper and circle your final answers.

Day 3 Simple vs Compound Interest.notebook April 07, Simple Interest is money paid or earned on the. The Principal is the

MATH 111 Worksheet 21 Replacement Partial Compounding Periods

The Theory of Interest

CHAPTER 4. The Time Value of Money. Chapter Synopsis

1.1 Interest rates Time value of money

Finance 100 Problem Set 6 Futures (Alternative Solutions)

Appendix A Financial Calculations

CHAPTER 3. Compound Interest

Introduction. Once you have completed this chapter, you should be able to do the following:

CS 413 Software Project Management LECTURE 8 COST MANAGEMENT FOR SOFTWARE PROJECT - II CASH FLOW ANALYSIS TECHNIQUES

Using the Finance Menu of the TI-83/84/Plus calculators

Global Financial Management

1 Some review of percentages

Solutions to end-of-chapter problems Basics of Engineering Economy, 2 nd edition Leland Blank and Anthony Tarquin

Interest Compounded Annually. Table 3.27 Interest Computed Annually

1 Some review of percentages

M d = PL( Y,i) P = price level. Y = real income or output. i = nominal interest rate earned by alternative nonmonetary assets

3.1 Simple Interest. Definition: I = Prt I = interest earned P = principal ( amount invested) r = interest rate (as a decimal) t = time

The three formulas we use most commonly involving compounding interest n times a year are

Queens College, CUNY, Department of Computer Science Computational Finance CSCI 365 / 765 Spring 2018 Instructor: Dr. Sateesh Mane. September 16, 2018

Essential Topic: Fixed-interest securities

GLOBAL EDITION. Using and Understanding Mathematics. A Quantitative Reasoning Approach SIXTH EDITION. Jeffrey Bennett William Briggs

Manual for SOA Exam FM/CAS Exam 2.

Measuring Interest Rates

(Refer Slide Time: 00:55)

Chapter 6: Supply and Demand with Income in the Form of Endowments

1 Week Recap Week 2

Exploring Microsoft Office Excel 2007 Comprehensive Grauer Scheeren Mulbery Second Edition

Adjusting Nominal Values to

Math116Chap10MathOfMoneyPart2Done.notebook March 01, 2012

Hello I'm Professor Brian Bueche, welcome back. This is the final video in our trilogy on time value of money. Now maybe this trilogy hasn't been as

Capstone Design. Cost Estimating and Estimating Models

Financial Maths: Interest

MTH6154 Financial Mathematics I Interest Rates and Present Value Analysis

Activity 1.1 Compound Interest and Accumulated Value

Lecture 10 Financial Functions Excel 2007

Time Value of Money. Lakehead University. Outline of the Lecture. Fall Future Value and Compounding. Present Value and Discounting

Calculator practice problems

Engineering Economics

Chapter 2. Time Value of Money (TVOM) Principles of Engineering Economic Analysis, 5th edition

MTH6154 Financial Mathematics I Interest Rates and Present Value Analysis

12.3 Geometric Series

Lesson FA xx Capital Budgeting Part 2C

7-4. Compound Interest. Vocabulary. Interest Compounded Annually. Lesson. Mental Math

FINANCE FOR EVERYONE SPREADSHEETS

Midterm 1 Practice Problems

6.1 Simple Interest page 243

Intermediate Excel. Winter Winter 2011 CS130 - Intermediate Excel 1

Geometric Sequences Ans

The time value of money and cash-flow valuation

Transcription:

Computational Mathematics/Information Technology 2009 10

Financial Functions in Excel This lecture starts to develop the background for the financial functions in Excel that deal with, for example, loan repayments and other compound interest problems. As an example, if I borrow 5000 over three years at a fixed rate of interest how much do I pay back per month.

Definition: A geometric progression or series of n values is an ordered set of the form: a, ar, ar 2, ar 3,..., ar n 1 where a is referred to as the first term and r the common ratio.

Definition: A geometric progression or series of n values is an ordered set of the form: a, ar, ar 2, ar 3,..., ar n 1 where a is referred to as the first term and r the common ratio. For example: ( ) 5 5, 2, 5 4, 5 1 n 1 8,..., 5 a = 5 r = 1 2 2 3, 3 2, 3 4, 3 8,..., ( 1 ) n 1 a = 3 r = 1 2 2

Usually we are interested in the sum of a geometric progression, a formula for which can be obtained as follows: Let then S n = a + ar + ar 2 + ar 3 + + ar n 1 S n rs n = ( a + ar + ar 2 + + ar n 1) ( ar + ar 2 + ar 3 + + ar n) S n rs n = a ar n Thus we have S n (1 r) = a(1 r n ) ( ) 1 r n S n = a 1 r

Usually we are interested in the sum of a geometric progression, a formula for which can be obtained as follows: Let then S n = a + ar + ar 2 + ar 3 + + ar n 1 S n rs n = ( a + ar + ar 2 + + ar n 1) ( ar + ar 2 + ar 3 + + ar n) S n rs n = a ar n Thus we have S n (1 r) = a(1 r n ) ( ) 1 r n S n = a 1 r r 1

Note: Financial Functions in Excel If r = 1 the formula is not valid. However in this case S n = a + a + + a where we have a appearing n times, and thus S n = na. In interest problems r is often less than 1 and quite often n is large; we thus note the following result: If r < 1 then: ( ) 1 r as n r n n 0 Thus S n = a 1 r a 1 r a Indeed 1 r is quite a common approximation for S n when n is large and r is small.

The basic compound interest problem is: If A is invested for n periods at an interest rate of r per period, how much is the investment worth at the end of the n periods?

For example if I invest 1000 for 12 months compounded monthly at a rate of 1% at the end of each month how much do I have at the end of the year? In this example A = 1000, r = 0.01 and n = 12. Note that r is expressed as a fraction in the mathematics even though it is expressed as a percentage in the question.

period 0 1 2 n Amount A A + ra A(1 + r) A(1 + r) + ra(1 + r) A(1 + r) 2 We have an initial investment of A over n periods, with the interest is added at the end of each period. A(1 + r) n At the end of the first month you have your initial investment, A, plus interest on the investment, ra, giving a total of A(1 + r).

period 0 1 2 n Amount A A + ra A(1 + r) A(1 + r) + ra(1 + r) A(1 + r) 2 We have an initial investment of A over n periods, with the interest is added at the end of each period. A(1 + r) n At the end of the first month you have your initial investment, A, plus interest on the investment, ra, giving a total of A(1 + r). At the end of the second interval we have A(1 + r) plus the interest on this amount, ra(1 + r). giving a total A(1 + r) 2.

period 0 1 2 n Amount A A + ra A(1 + r) A(1 + r) + ra(1 + r) A(1 + r) 2 We have an initial investment of A over n periods, with the interest is added at the end of each period. A(1 + r) n At the end of the first month you have your initial investment, A, plus interest on the investment, ra, giving a total of A(1 + r). At the end of the second interval we have A(1 + r) plus the interest on this amount, ra(1 + r). giving a total A(1 + r) 2. At the end of the n th period we have a total amount of A(1 + r) n.

In our simple example of 1000 being invested at 1% per month for a year the amount at the end of the 12 months S 12 = 1000(1 + 0.01) 12 = 1126.83.

Note: The final amount is 6.83 more than if the compounding had been carried out only once at the end of the year at a rate of 12%. In all our problems it will be clear what the rate is and when we are applying it. We will not discuss the idea of effective interest rates or indeed the various ways in which banks express the interest rates in their advertising.

In summary: An amount A invested at a rate r for n periods amounts to A(1 + r) n.

If an amount A is invested initially at a rate r for n periods and in addition we invest an amount p at the end of each period what will the final amount be?

period 0 1 2 n Amount A A(1 + r) + p {A(1 + r) + p}(1 + r) + p S n S 0 S 1 S 2 = A(1 + r) 2 + p(1 + r) + p At the end of the first period the initial investment has grown to A(1 + r) Adding to this the regular investment p gives a total of S 1 = A(1 + r) + p

period 0 1 2 n Amount A A(1 + r) + p {A(1 + r) + p}(1 + r) + p S n S 0 S 1 S 2 = A(1 + r) 2 + p(1 + r) + p At the end of the first period the initial investment has grown to A(1 + r) Adding to this the regular investment p gives a total of S 1 = A(1 + r) + p At the end of the second period this will grow to its original value multiplied by (1 + r), plus our next regular payment p, so S 2 = {A(1 + r) + p}(1 + r) + p = A(1 + r) 2 + p(1 + r) + p

Carrying out this process once more gives: S 3 = { A(1 + r) 2 + p(1 + r) + p } (1 + r) + p = A(1 + r) 3 + p(1 + r) 2 + p(1 + r) + p

Carrying out this process once more gives: S 3 = { A(1 + r) 2 + p(1 + r) + p } (1 + r) + p = A(1 + r) 3 + p(1 + r) 2 + p(1 + r) + p From this we can see the n th case will be S n = A(1 + r) n + p(1 + r) n 1 + p(1 + r) n 2 + + p

S n = A(1 + r) n + p(1 + r) n 1 + p(1 + r) n 2 + + p We sum the geometric progression part (noting the common ratio is (1 + r)): { } 1 (1 + r) S n = A(1 + r) n n + p 1 (1 + r) = A(1 + r) n + p (1 + r)n 1 r

In summary: An initial investment A and regular investment p at the end of each period, compounded at the rate r per period, becomes after n periods: { (1 + r) S n = A(1 + r) n n } 1 + p r

Example: I initially invest 1000 in a saving scheme and then at the end of each month I invest an extra 50. If the interest rate is 0.5% per month and I continue this process for two year, how much will my saving be worth? Substituting directly into our equation with A = 1000, p = 50, r = 0.005 and n = 24 we obtain the final amount: { (1 + 0.005) final amount = 1000(1 + 0.005) 24 24 } 1 + 50 0.005 = 2398.76

Although the mathematical ideas behind such problems are quite straightforward some care needs to be employed when trying to implement the functions provided by Excel. Thus a thorough understanding of the mathematical formulas being used by Excel is essential in order to obtain and interpret correctly the answers given.

In the previous example it is clear how we should enter the parameters A, p, r, and n, however to use the worksheet functions in Excel we have to adopt a sign convention: Excel s sign convention: Money that flows away from you is given a negative sign and money that flows towards you is given a positive sign. If you have to put your hand in your pocket and pay money out then it carries a minus sign. If money is put into your pocket then it carries a positive sign.

Previous Example: I initially invest 1000 in a saving scheme and then at the end of each month I invest an extra 50. If the interest rate is 0.5% per month and I continue this process for two year, how much will my saving be worth?

Previous Example: I initially invest 1000 in a saving scheme and then at the end of each month I invest an extra 50. If the interest rate is 0.5% per month and I continue this process for two year, how much will my saving be worth? We make an initial investment, thus in the Excel functions we would enter 1000 and not +1000.

Previous Example: I initially invest 1000 in a saving scheme and then at the end of each month I invest an extra 50. If the interest rate is 0.5% per month and I continue this process for two year, how much will my saving be worth? We make an initial investment, thus in the Excel functions we would enter 1000 and not +1000. We make a monthly payment thus we would enter 50 into the Excel functions and not +50.

Previous Example: I initially invest 1000 in a saving scheme and then at the end of each month I invest an extra 50. If the interest rate is 0.5% per month and I continue this process for two year, how much will my saving be worth? We make an initial investment, thus in the Excel functions we would enter 1000 and not +1000. We make a monthly payment thus we would enter 50 into the Excel functions and not +50. The final amount is paid back to you thus Excel will yield a positive answer.

Denoting the final or future value by FV, monthly payments by PMT and the initial or present value of our investment by PV the sign convention would require: A = PV since the initial amount is paid out to the Bank p = PMT since the payments are paid out to the Bank S n = FV since the future value is paid back to you.

Recall { (1 + r) S n = A(1 + r) n n } 1 + p r Excel is using the formula: { (1 + r) FV = PV(1 + r) n n } 1 PMT r

Excel s Future Value Function =FV(r, n, PMT, PV, type) The parameters are as in { (1 + r) FV = PV(1 + r) n n } 1 PMT r with the additional parameter type. If type is set equal to zero then this is the formula used. If type is set equal to 1 then it is assumed that the payments are made at the start of each period.

Previous Example: I initially invest 1000 in a saving scheme and then at the end of each month I invest an extra 50. If the interest rate is 0.5% per month and I continue this process for two year, how much will my saving be worth? Using Excel we would enter into the worksheet: or This gives 2398.76 as before. = FV(0.005, 24, 50, 1000, 0) = FV(0.5%, 24, 50, 1000, 0)

Excel s Present Value Function =PV(r, n, PMT, FV, type) This is { (1 + r) FV = PV(1 + r) n n } 1 PMT r rearranged to make PV the subject of the formula giving { { (1 + r) n }} 1 PV = FV + PMT (1 + r) n r

Example: If I wish to accumulate 5000 in four years time by depositing 75 per month in a fixed rate account with interest rate of 0.4% per month, what initial investment must I also make? Here the accumulated amount of 5000 is the FV which is paid to us, thus it is entered as a positive quantity. We are making payments of 75 thus we enter PMT as 75. Four years is 48 periods thus n = 48. The interest rate is entered as 0.004 or 0.4%.

We enter: This gives 858.55. = PV(0.004, 48, 75, 5000, 0) The minus sign indicating that we must pay out, that is to say deposit 858.55, at the start of the investment in order to reach 5000 by the end.

Excel s Payment Function =PMT(r, n, PV, FV, type) This is { (1 + r) FV = PV(1 + r) n n } 1 PMT r rearranged to make PMT the subject of the formula: { } PMT = {FV + PV(1 + r) n r } (1 + r) n 1

Example: How much will the monthly repayments be if I borrow 100,000 over 20 years with an effective monthly interest rate of 0.5%? The final value, FV, is zero, since we must pay back all the loan and interest by the end of the period. The loan is paid to us at the start, so the present value, PV is +100, 000. The number of payments is 240 and we assume that we pay at the end of each month thus type=0.

We enter: This gives 716.43. = PMT(0.5%, 240, 100000, 0, 0) As expected the result is negative since we are paying out money each month.

The last two Excel functions based explicitly around the equation { (1 + r) FV = PV(1 + r) n n } 1 PMT r are to find the number of periods for payments, n, and the interest rate, r.

Excel s Number of Periods Function =NPER(r, PMT, PV, FV, type) This calculates the number of periods required in a given financial problem given all the other parameters. This is a good exercise in rearranging a formula: Rearrange { (1 + r) FV = PV(1 + r) n n } 1 PMT r to find an expression for n.

Excel s Number of Periods Function =NPER(r, PMT, PV, FV, type) This calculates the number of periods required in a given financial problem given all the other parameters. This is a good exercise in rearranging a formula: Rearrange { (1 + r) FV = PV(1 + r) n n } 1 PMT r to find an expression for n. n = 1 ln(1 + r) ln { PMT r PMT r } FV + PV

Note: The chances of you getting an integer out of this expression in a real problem are roughly zero! Example: How long would it take me to pay off a loan of 10,000 at a rate of 0.5% per month if I can afford to pay 100 per month? PV= +10000, FV=0, PMT= 100, r= 0.5%, type=0 We enter: and get the answer 138.98. = NPER(0.5%, 100, 10000, 0, 0)

We have a couple of options: 1. Pay for 139 periods but make the last payment smaller. 2. Pay for 138 but make the last payment bigger.

We have a couple of options: 1. Pay for 139 periods but make the last payment smaller. 2. Pay for 138 but make the last payment bigger. 3. Pay for 139 periods and pocket the overpayment.

For option 1) calculate = FV(0.5%, 139, 100, 10000, 0) This gives 2.42. I.e., 2.42 should be returned to you at the end, making a final payment of 97.58.

For option 1) calculate = FV(0.5%, 139, 100, 10000, 0) This gives 2.42. I.e., 2.42 should be returned to you at the end, making a final payment of 97.58. For option 2) calculate = FV(0.5%, 138, 100, 10000, 0) This gives 97.09. I.e., after 138 payments you still owe 97.09, so you pay a final payment of 197.09.

Excel s rate Function =RATE(n, PMT, PV, FV, type, guess) This calculates the interest rate given all the other parameters. { (1 + r) FV = PV(1 + r) n n } 1 PMT r Cannot be rearranged to give an equation for r. Excel will have to find r by an iterative method. Microsoft are not telling, but it could be done by solving { (1 + r) f (r) = FV + PV(1 + r) n n } 1 + PMT = 0 r using Newton s method. guess is the initial guess for r.

Example: I borrow 1000 over 1 year making payments of 100 per month at the end of each month. What is the monthly interest rate? We calculate This gives 2.92%. = RATE(12, 100, 1000, 0, 0, 0)

Excel has many other financial function. See Dr Bowtell s notes for details on the following: For calculating how much interest or principal is payed off in any payment period: =IPMT(r, i, n, PV, FV, type) =PPMT(r, i, n, PV, FV, type) For calculating how much interest or principal is payed off over some longer time (cumulative interest or payment): cumulative interest function =CUMIPMT(r, n, PV, start, end, type) cumulative principal function =CUMPRINC(r, n, PV, start, end, type)