Deductions & credits

You didn't say what the problem is.  What bug?