(1) Subject to this section, where any of the following events occurs in the case of any machinery or plant in respect of which an initial allowance or a wear and tear allowance has been made for any chargeable period to a person carrying on a trade -
(a) any event occurring after the setting up and before the permanent discontinuance of the trade whereby the machinery or plant ceases to belong to the person carrying on the trade (whether on a sale of the machinery or plant or in any other circumstances of any description),
(b) any event occurring after the setting up and before the permanent discontinuance of the trade whereby the machinery or plant (while continuing to belong to the person carrying on the trade) permanently ceases to be used for the purposes of a trade carried on by the person,
(c) the permanent discontinuance of the trade, the machinery or plant not having previously ceased to belong to the person carrying on the trade,
(d) in the case of machinery or plant consisti
…