def calc_score(score):
    """
    Convert threatgrid score to dbot score
    """
    if not score:
        return 0
    dbot_score = 1
    if score >= 95:
        dbot_score = 3
    elif score >= 75:
        dbot_score = 2
    return dbot_score