def METHOD_NAME(self, avg_score, out_score):
    if out_score == 0:
        return 100
    x = avg_score / out_score
    ymin = math.log2(2)
    ymax = math.log2(200)
    y = math.log2(x)
    if y >= ymax:
        return 100
    elif y <= ymin:
        return 0
    return round((y - ymin) / (ymax - ymin) * 100)