Credits and deductions

Yes. You incurred the expense in 2017.