def calculate(self, c_or_x, y=None):
        if y is None:
            c = c_or_x
            hsv = c.getHSV()

            x = round(hsv[0] * 220.0)
            y = 0

            # lower half
            if hsv[1] == 1.0:
                y = round(110.0 - ((hsv[1] + hsv[2]) * 110.0))
            else:
                y = round(hsv[1] * 110.0)

            return [x, y]
        else:
            x = c_or_x
            h = x / 220.0
            s = 1.0
            v = 1.0

            if y < 110:
                s = y / 110.0
            elif y > 110:
                v = ((y - 110.0) / 110.0) - 1.0

            return Color(*hsv_to_rgb(h, s, v))


# Implement the HSV color converter
dataset/ETHPy150Open rwl/muntjac/muntjac/addon/colorpicker/color_picker_popup.py/RGBConverter.calculate/swapped operands of `-`