def get_delta(instance, cf):
    """
    Compute difference between original instance and counterfactual
    :param instance: List of features of original instance
    :param cf: List of features of counterfactual
    :return: List of differences between cf and original instance
    """
    delta = []
    for i, original in enumerate(instance):
        counterfactual = cf[i]

        if type(original) == str:
            if original == counterfactual:
                delta.append(0)
            else:
                delta.append(1)
        else:
            delta.append(counterfactual - original)

    return delta