Hi,
Request you to please go through the article which describes about adjusted cost base - https://turbotax.intuit.ca/tips/calculating-adjusted-cost-base-6285.
Hope this helps!