Deductions & credits

Looks like you've written this logic wrong