Deductions & credits

Does the credit get applied to Total Tax line 24 or the amount you owe line 37?