Calculation of final amount and interest gained