MulaiMulai sekarang secara gratis

Calculating future value

Calculating future value is an important step in building up to bond pricing as the process of pricing a bond is actually calculating future value in reverse. Here you will find the future value of an investment using the npf.fv() formula from earlier.

Latihan ini adalah bagian dari kursus

Bond Valuation and Analysis in Python

Lihat Kursus

Petunjuk latihan

  • Import the numpy_financial package using the alias npf.
  • Calculate the future value of an investment of USD 10,000 with top-ups of USD 5,000 each year for 30 years earning 5% annual interest and assign the result to savings.
  • Print the result.

Latihan interaktif praktis

Cobalah latihan ini dengan menyelesaikan kode contoh berikut.

# Import numpy_financial package using the alias npf
____

# Calculate the future value of an investment
savings = npf.fv(rate=____, nper=____, pmt=____, pv=____)

# Print the result
____
Edit dan Jalankan Kode