How is tax cost calculated?

Original cost of the asset minus accumulated depreciation.