Calculation of profit and interest