In most cases, the discount you received will be reported as ordinary income in Box 1 of your W2 in the year of sale. Most people have trouble calculating adjusted cost basis for filing taxes. This calculator will help with that.
This form has a bug: the form values don't persist after the first submit. Please email me: esppcalculator at gmail if you can help me fix it.