def calculate_incorrect(guess, slip, learned):
    """
    Determines how likely the learner will respond to a card not well.
    """

    return learned * slip + (1 - learned) * (guess - 1)
dataset/ETHPy150Open heiskr/sagefy/server/modules/sequencer/formulas.py/calculate_incorrect/swapped operands of `-`