Deductions & credits

The above is true but I did not carefully take the dates into account.  Hal's answer is better.