Under Section 50 of the Income Tax Act, if you have sold a capital asset forming part of a block of assets, including building and machinery, on which the depreciation has been allowed under the law, the income arising from the sale is treated as short-term capital gain.