Calculating Capital Gains On Shares