def METHOD_NAME(self, area):
    """Calculate hp according to color.
    Args:
        area (tuple):
    Returns:
        float: HP.
    """
    data = max(
        color_bar_percentage(self.device.image, area=area, prev_color=COLOR_HP_RED),
        color_bar_percentage(self.device.image, area=area, prev_color=COLOR_HP_GREEN)
    )
    return data