Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function in python how _ long that takes as input the amount for an initial investment, a final target amount, and the expected
Write a function in python howlong that takes as input the amount for an initial investment, a final target amount, and the expected interest rate of the account as a decimal and it returns the number of years it will take to achieve the target amount.
For example, if you win a small lottery and decide to invest dollars today in the market, which historically averages a annual return, and you want to wait for it to become a million dollars, then howlong should return telling you that it will take just over years.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started