(remaining basis in a damaged building and the cost of its demolition are only recoverable as an offset against proceeds from the sale of the land on which the building was located).