Business & farm

In June, I sold roughly 7000 shares.  1600 were covered and 5200 were uncovered.  All were long term.  I computed average cost per share by adding total cost for all of the shares on the date of sale and dividing by the total number of shares held on that date.  I used that number as average cost per share and multiplied it by the number of shares number of shares sold in determining what my total gain was..