跳到正文

第 9 课 · Time Value of Money

Discounting Dated Cash Flows

Discount cash flows with real dates, convert quoted rates to effective rates, handle inflation consistently, and avoid common spreadsheet timing errors.

Money today is usually worth more than the same amount later, because it can earn a return, and because later payment is uncertain. The theory is covered in future and present value. Here you handle the practical problems: uneven dates, quoted rates, inflation and spreadsheet conventions.

The core formula

With a yearly discount rate r and a time t in years:

Present value = cash flow / (1 + r)^t

The textbook case uses whole years. Real contracts pay on specific dates, so t is often a fraction.

Dated cash flows

One simple convention counts days between dates and divides by 365.

Python Present value of irregularly dated payments

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

At 0% the value is simply the total of the flows. A higher rate lowers the value of later money, so the net value falls. The first date is the valuation date.

Other day-count conventions exist, such as assuming 360-day years or 30-day months. Loan and bond contracts state which one applies.

Nominal, periodic and effective rates

A lender might quote "12% a year, compounded monthly." That is a nominal annual rate. The monthly periodic rate is 12% / 12 = 1%. The effective annual rate (EAR) includes compounding:

EAR = (1 + nominal / m)^m - 1

where m is the number of compounding periods per year. To go from an effective annual rate to a monthly rate, use (1 + EAR) ** (1/12) - 1. Dividing an effective rate by 12 is wrong.

Python Compare compounding frequencies

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Consumer-credit labels such as APR follow legal definitions that differ by country and may include certain fees. Do not assume two quoted rates are comparable. Calculate the cash flows and the effective cost yourself.

Real versus nominal

Nominal cash flows include expected inflation. Real cash flows are stated in today's purchasing power. The two rates are connected by the Fisher relationship:

(1 + nominal rate) = (1 + real rate) × (1 + inflation)

The rule is: discount nominal flows at a nominal rate, and real flows at a real rate. Mixing them is a serious error.

Python Both methods give the same value

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The first two match. The mixed version undervalues the flows, because it applies inflation in the rate but not in the money.

Timing within a period

Many formulas assume each flow arrives at the end of its period. If money arrives evenly through the year, some analysts use a mid-year convention: discount year t at t - 0.5. For positive flows and a positive rate, this raises the value. Whichever you choose, say so and apply it consistently.

A spreadsheet trap

Spreadsheet NPV functions commonly assume the first value in the list arrives one period from now. If you include today's investment inside the function, it gets discounted once too often. The usual fix (read-only, not run here):

TEXT
=NPV(rate, B3:B7) + B2     (B2 holds the investment made today)

Dated functions such as XNPV use dates instead. Check your application's documentation for exact behavior, and see Excel financial functions.

Common mistakes: using a yearly rate with monthly periods; mixing real and nominal figures; and discounting today's payment. Today's cash has a discount factor of exactly 1.

Discount factors help review

Instead of burying the formula, calculate a discount factor for each date and show it. Reviewers can then check each line: cash flow × factor = present value. A factor above 1 for a future date with a positive rate is an immediate sign of a mistake.

Perpetuities and annuities with dates

Shortcut formulas for annuities and perpetuities assume equal gaps and a constant rate. If payments start at a later date, calculate the value at the time just before the first payment and then discount it back to today. If gaps are irregular, simply discount each flow separately, as in the first example. The code is short, and it is much harder to get wrong than a clever formula used outside its assumptions.

For the formulas themselves, see annuities and perpetuities.

Choosing the discount rate

This lesson takes the rate as given. In practice it should reflect the risk and timing of the flows being valued. A guaranteed payment and a hopeful sales forecast deserve different rates. Business valuation rates are covered later in cost of capital in practice.

A review routine

  1. Confirm the valuation date.
  2. List every flow with its date and sign.
  3. Check that the rate period matches the time unit (years with yearly rates).
  4. Decide whether flows are nominal or real.
  5. Test at a 0% rate: the result must equal the plain sum.
  6. Test a higher rate: for a normal investment (money out first, money in later), the value should fall.

The fifth test is quick and catches many mistakes in signs and missing rows.

Practice tasks

Try each task on paper or in the editor above before you read the answer. When your result differs, compare definitions first, then timing, then arithmetic.

Task 1. What is the present value of 11,025 due in exactly two years at 5% a year?

Answer: 11,025 / 1.05 squared = 10,000.

Task 2. A quote says 8% nominal, compounded quarterly. What is the effective annual rate?

Answer: (1 + 0.08 / 4) to the power of 4, minus 1, is about 8.24%.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A nominal rate of 12% compounded monthly has an effective annual rate that is

    Interest earns interest during the year, giving about 12.68%.
  2. 2. Which pairing is consistent?

    Flows and rates must both include or both exclude inflation.
  3. 3. What is the discount factor for a payment made today?

    No time passes, so there is no discounting.
  4. 4. How do you get a monthly rate from a 12% effective annual rate?

    Take the twelfth root to reverse compounding.

Summary

  • Discount each flow using its actual timing and a stated day count.
  • Convert quoted rates to effective or periodic rates before comparing.
  • Match nominal flows with nominal rates, and real with real.
  • Check spreadsheet timing assumptions.

Next: Loan Amortization Schedules

你的学习进度保存在此浏览器中,无需账号。