def get_adjusted_unsuccessful(row, outcome_col, num_unsuccess_col):
    """
    Returns adjusted number of unsuccesful contacts given column of outcome and num_unsuccess
    """
    outcome = row[outcome_col]
    num_unsuccess = row[num_unsuccess_col]
    if outcome == 0:
        adj_num_unsuccess = num_unsuccess - 3 if num_unsuccess >= 3 else 0
    else:
        adj_num_unsuccess = num_unsuccess
    return adj_num_unsuccess