This PDF from BMO Nesbitt Burns explains how to calculate your your adjusted cost base for box 20: https://nesbittburns.bmo.com/pictures/account-elizabeth.petticrew@nbpcd.com/Taxation%20Stock%20Options_EP_1016.pdf