The magic of compound interest!
Suppose Lara invests £100 in a bank account that offers an annual interest rate of 5%. The interest is compounded annually. After 50 years of compound interest at a 5% annual rate, Lara would have approximately £1,211.94 in her account.
“Compound interest is the eighth wonder of the world. He who understands it earns it. He who doesn’t pays it.” - Albert Einstein
Clone the repo. In the project directory, you can run:
npm install
npm start
To run the tests, you can run:
npm test
Open http://localhost:3000 to view it in the browser.
DISCLAIMER: Please don't use these figures to calculate your financial future. Use a more tested one like https://www.investor.gov/additional-resources/free-financial-planning-tools/compound-interest-calculator
Monevator's Compound Interest Calculator
Happy compounding!