added multiple quantity discounts per iteration in loop reducing number of loops needed for total calc