For example:
Company X shares in 2016 - 38 USD
5 years later, in 2021 - 66.95 USD
38 + 12% (4.56 USD) + 12% (5.10 USD) + 12% (5.72 USD) + 12% (6.40 USD) + 12% (7.17 USD) = 66.95 USD
What formula should I use to know that the average compound interest is 12% for each year?