Compound Annual Growth Rate

easy
Unit 8 · Metrics0/3 to milestone

Implement:

  • cagr(start, end, years) = (end/start)1/years−1(\text{end}/\text{start})^{1/\text{years}} - 1
  • doubling_time(rate): years to double at a constant annual rate, ln⁡2ln⁡(1+r)\frac{\ln 2}{\ln(1 + r)}
  • project(value, rate, years): a list of values for years 0..years compounding annually
#finance#growth2 visible + 1 hidden tests
solution.py · Python 3.13
Loading editor…
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Compound Annual Growth Rate · TechGradify