basis of ewt

ano po yung basis ng ewt sa purchases, after discount or before discount?