Deductions & credits

Check out IowaMarc's solution in this thread. It worked a treat for me