Deductions & credits

A state tax refund applied to next years state taxes owed would be included in the state income taxes paid on next years Form 1040 Schedule A Line 5a.  So it would be included as part of the cap of $10,000 in 2018.