LoslegenKostenlos loslegen

Discount factors and depreciation

Unfortunately, not everything grows in value over time.

In fact, many assets depreciate, or lose value over time. To simulate this, you can simply assume a negative expected rate of return.

Example:

Calculate the final depreciated value of an initially $10,000 car which declines in value by 3% per year for 10 years:

\( \$10,000*(1 + -0.03)^{10} = \$7,374.24 \)

Diese Übung ist Teil des Kurses

Introduction to Financial Concepts in Python

Kurs anzeigen

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

# Calculate the future value
initial_investment = 100
growth_rate = ____
growth_periods = ____
future_value = ____
print("Future value: " + str(round(future_value, 2)))
Code bearbeiten und ausführen