The current value of an improvement is the original cost minus any depreciation taken. Land is not depreciable.
When you sell, you have to allocate the sales price between the building and the land. You also have to determine if the land value has increased or decrease percentage-wise in relation to the building.