Simple AngularJS project. Compound interest