The workings are, if you add in a negative value your running total gets smaller, but if you add in a positive value it gets bigger.
In the specific example you give, one can see by sight that the addition of the -8 and the addition of the +8 cancel each other out, leaving you the ubiquitous 1+1= sum. Which, as we all know, equals -798.3 remainder 2.