How to measure your portfolio’s rate of return