Calculate difference between two sequence numbers

Needed by ack-field calculations.