Unit 8
Compound Annual Growth Rate
easy
37/113
Starting runtime…
Run
Submit
description
Hints
Solution
Notes
Unit 8 ·
Metrics
0/3 to milestone
Implement:
cagr(start, end, years)
=
(
end
/
start
)
1
/
years
−
1
(\text{end}/\text{start})^{1/\text{years}} - 1
(
end
/
start
)
1/
years
−
1
doubling_time(rate)
: years to double at a constant annual rate,
ln
2
ln
(
1
+
r
)
\frac{\ln 2}{\ln(1 + r)}
l
n
(
1
+
r
)
l
n
2
project(value, rate, years)
: a list of values for years
0..years
compounding annually
#finance
#growth
2 visible + 1 hidden tests
solution.py · Python 3.13
Reset
Loading editor…
Tests
Console
Run your code to see results.
⌘↵ to run · ⌘⇧↵ to submit
Compound Annual Growth Rate · TechGradify