Implemented code to calculate diff in simple and compound interest