HW #05

Just to make it a bit simpler, consider the reference implementation:

    total = calculate_total(principal, duration, prequalification)
    if total is not None:
        total -= principal
    return total