Rental property expenses same year as sale of property?

We owned a rental property from 2018 until May 7 of 2021, all utilities(electric, cable & water) were included.   We received rent for the months of Jan & Feb, our daughter was renting the property until her new home was finished (mid-March).  We told her not to worry about paying rent for the month of March.    After she moved out, we replaced all the flooring with vinyl plank & carpet.  We also continued to pay the utilities, did some cleaning, landscaping and painting.   How do I handle the flooring cost?   How do I handle the other deductions for utilities, cleaning etc?   Can I just list those Schedule E?