Hei, after several tries, I haven't managed to find the answer, or run my code.
My problem is to find a specific interest rate for an annual annuity for a period of time.
I tried using a while loop to find alpha and beta interest rates, but my setup is wrong in some way...
Would appreciate all help!
Consider for example an annuity α, which pays $1,000 per year for 25 years, at a cost of $15,000 today. Now consider annuity β, which pays $1,250 per year for 20 years, also at a cost of $15,000 today. Which one is a better investment?
Write a function annuity_rate(n, a, p)
Calculate:
α rate -> annuity_rate(25,1000,15000)
β rate -> annuity_rate(20,1250,15000)
Kind regards
Engineering student
My problem is to find a specific interest rate for an annual annuity for a period of time.
I tried using a while loop to find alpha and beta interest rates, but my setup is wrong in some way...
Would appreciate all help!
Consider for example an annuity α, which pays $1,000 per year for 25 years, at a cost of $15,000 today. Now consider annuity β, which pays $1,250 per year for 20 years, also at a cost of $15,000 today. Which one is a better investment?
Write a function annuity_rate(n, a, p)
Calculate:
α rate -> annuity_rate(25,1000,15000)
β rate -> annuity_rate(20,1250,15000)
Kind regards
Engineering student