Investors & landlords

I rented a condo all 2017 to 2018 and started to get it ready for sale in 2019. It was empty for first 6 months in 2019 while trying to sell, which resulted in a loss of income.

 

How can I report the loss of income against the sale of the property to lower capital gains taxes on the proceeds of the sale, less sales expense <> $100k?