Investors & landlords

Thank you for the answer. It is clear to me how to caclulate the cost basis per share during the vested date.

 

My question is that since in the vested date I received 700 shares and 208 of them were used for tax withholding, should i use the 492 shares to calculate the cost basis of the sale or the 700 shares (including those kept for tax)?