Get your taxes done using TurboTax

In my years of acquiring and selling ESPP this has never happened because inevitably you get the stock purchase notification and by the time you are able to get the sales order to go through the stock has dropped in price.  It's usually not enough to make much of a difference but should still result in a net "loss" as long as your discount was reported as income on your W-2.