Deductions & credits

I think you colleague provided the correct answer below and cited his resources.