Simple interest and compound interest calculation