Calculation is by each individual code, not the total sum of the claim.
$
A negative write off is the result of an overpayment by secondary and should be reported or refunded to the insurancy company.