If you went through the rental section and answered all the questions regarding the sale correctly, the program figures profit or loss from the sale. If you have a loss, since it is a business property, it is deductible. The cash in hand is irrelevant.
The calculation involves cost plus improvements plus sales expenses minus depreciation is your adjusted basis. Sales price minus adjusted basis is gain or loss.