deduct quantity