@ukapil: for resident Indians, sale of ESPP is treated as capital gains. The tax % will depend upon the holding period. In case of short-term capital gains, the tax rate is 15% and for long-term capital gains, the tax rate is NIL. In case of short-term capital gains, the differential price in ESPP and market price of the shares will be added as perquisite.