Does this work for you?

=MIN(B1:B2)-MAX(A1:A2)