Module 2 · Financial Arithmetic, Time Value, and Returns Lesson 13 of 120

Present Value and Future Value

Comparing money on two different dates.

2:31 clip42:34–45:06 in the full courseWatch on YouTube

Transcript

21 sentences · select one to jump there

Check your understanding

What happens to PV when the positive discount rate rises, holding FV fixed?

Choose one answer

Code lab

Run it yourself

The lesson source in 7 languages. Edit it, run TypeScript and Python right here, and compare with the expected output.

013-present-value-and-future-value.ts
Start from GitHub
/**
 * Fintech Math Bootcamp · Lesson 013 of 120
 * Present Value and Future Value
 * Module 02: Financial Arithmetic, Time Value, and Returns
 *
 * Scenario: Comparing money on two different dates
 * Rule:     PV = FV/(1+r)ⁿ
 *
 * Try it:   What happens to PV when the positive discount rate rises, holding FV fixed?
 *
 * Lesson article: https://thefintechbuilder.com/financial-mathematics-statistics-and-data-foundations/financial-arithmetic-time-value-and-returns/present-future-value/
 * Free course:    https://courses.thefintechbuilder.com
 * Synthetic teaching example, not financial advice or a production library.
 */

export function lesson013() {
  const future = 1210, rate = 0.10, years = 2;
  const present = future / (1 + rate) ** years;
  const reconstructed = present * (1 + rate) ** years;
  const result = {present, reconstructed};
  return result;
}

export const checkedResult = {"present":999.9999999999999,"reconstructed":1210};

// Run this file directly: npx tsx lessons/02-financial-arithmetic-time-value-and-returns/013-present-value-and-future-value.ts
if (process.argv[1] && import.meta.url.endsWith(process.argv[1].replace(/\\/g, "/").split("/").pop()!)) {
  console.log(JSON.stringify(lesson013(), null, 2));
}

Your output

Press Run to execute the code in your browser.

Expected output

{
  "present": 999.9999999999999,
  "reconstructed": 1210
}

Prefer your own machine? Every file is in the course repository · open it in Codespaces.

Lesson notes

The rule

PV = FV/(1+r)ⁿ