Does it pay to invest in an RRSP? Here's the math