how, to, calculate, discount, allowed