Calculation of investments at different rates