Calculation of trade discount