Wireshark already does this calculation for you. For Wireshark 15 newer. The first frame is always 0000000.
TCP Analyze Sequence Numbers.
We add the amount of data sent to the current sequence number then we get the next expected sequence number 101. A stock instance of Wireshark looks similar to this with frames time source destination protocol etc as the columns. This means that all SEQ and ACK numbers always start at 0 for the first packet seen in each conversation The picture below shows a real example of TCP sequence and acknowledgment numbers in a TCP flow diagram. This means that instead of displaying the realabsolute SEQ and ACK numbers in the display Wireshark will display a SEQ and ACK number relative to the first seen segment.