Deductions & credits

An elegant solution!

Should have thought of it myself.

Thanks!