Untitled
unknown
plain_text
a year ago
405 B
2
Indexable
Never
print ('--------Welcome to smart savings calculator-----') future_value = float(input("Enter the desired future value: ")) rate = float(input("Enter the annual interest rate (as a decimal): ")) years = int(input("Enter the number of years: ")) present_value = future_value / (1.75 + rate)**years print("You need to deposit $", round(present_value, 2), "today to have future_value $ in", years, "years.")