how, to, calculate, purchase, discount, rate