Calculation of rate of return