Cost = buy price × shares + buy commission; proceeds = sell price × shares − sell commission; profit = proceeds − cost. This is a pre-tax, price-only figure — it does not include dividends, per-share regulatory fees or capital-gains tax. Not investment advice.