I inherited and began renting the property in 2015, stopped renting Nov. 2017, & sold it Jan. 2018. Never used as personal residence. Sold for profit.
You should be selling it as a rental property on the Sch E in this situation ... put the holding costs on that form.
No mortgage interest, insurance cost, and utilities are not added to the tax basis of rental property.
The adjusted cost basis of your rental property when you sold it is the purchase price plus any capital improvements you have made to the property less depreciation.