Deductions & credits

It is inconsistent. You need to do a test with more entries. Mine was incorrect 9/27 entries.