1. Counterclaims between two persons may be terminated by setoff if these claims have become due.
2. Obligations may also be set off when one of the claims has not become due but the party holding such claim agrees to the setoff. Obligations shall be set off by notice to the other party.