Business & farm

So it is clear that when the property is no longer listed for rent, expenses (taxes, HOA fees, utilities etc.) cannot be claimed as rental expenses. Got it!

But, if the property is listed for sale or being prepared for sale after being removed from the rental market, are those expenses legitimate selling expenses and can they be claimed as such?