Calculate Sub

Calculate the remainder per ID: new amount minus the two starting amounts.

Input example

Source:
A|2|3
Updates:
A|8

Output example

A|3