In which year can I deduct health insurance enrollment payment?

In which year can I deduct health insurance enrollment payment? (For the health insurance purchased on the marketplace with tax credits applied to the cost of the plan.)

For example, I enrolled for 2018 coverage and paid premiums for the first month of the coverage in November, 2017. In which return can I claim deduction for my self-employed activity?