How can I calculate real estate depreciation tax?

Replacement-cost estimate a key factor