Calculating Capital Gains On Share Sales