Corrected discounted prices

simplified code for discounted prices