code: def value(self):
        
        originalPrice = self.lineItem.totalPrice
        if self.flatRate == 0:
          return originalPrice * self.percent
        return self.flatRate
docs: Returns the positive value to subtract from the total.