Calculation of investment returns