def guideline_amounts_difference_b(responses, derived):
    """
    Return the difference between the guideline amounts to be paid by
    claimant 1 and claimant 2 for Factsheet B
    """

    try:
        amount_1 = float(responses.get('your_child_support_paid_b', 0))
    except ValueError:
        amount_1 = 0

    try:
        amount_2 = float(responses.get('your_spouse_child_support_paid_b', 0))
    except ValueError:
        amount_2 = 0

    return abs(amount_1 - amount_2)