def sub_with_none(v1,v2):
    """ Substract treating None as zero """
    p1 = v1 is None
    p2 = v2 is None
    
    if p1 and p2:
        return None
    elif p1:
        return -v2
    elif p2:
        return v1
    else:
        return v1 - v2