Calculate compound annual growth rate.
CAGR = (Ending Value / Beginning Value)^(1/Years) - 1.
CAGR shows the average annual growth rate of an investment over a period, smoothing out volatility.