If we sold stock from an ESPP of a previous employer, how do I calculate the compensation to be reported?

Since this is a previous employer, they do not report the compensation on a W-2.  But I'm not sure how to do it or if I have to.  I have all of the taxlot data of the sale from the broker but I'm not sure how this stock sale should be treated for tax purposes.