The balance is as follows: June 30, 2020 2019 Deferred costs to obtain a contract $ 977.8  $ 992.3  Deferred costs to fulfill a contract 1,423.8  1,436.2  Total deferred contract costs (1) $ 2,401.6  $ 2,428.5  (1) The amount of total deferred costs amortized during the twelve months ended June 30, 2020, June 30, 2019, and June 30, 2018 were $915.0 million , $874.0 million, and $837.4 million, respectively. In fiscal 2020, the Company recorded impairment charges of $2 5.3 million as a r esult of recognizing certain owned facilities at fair value given intent to sell and accordingly classified as held for sale. In addition, the Company vacated certain leased locations early and recorded total impairment charges of  $4.6 million  to operating right-of-use assets and certain related fixed assets associated with the vacated locations. In fiscal 2019, the Company wrote down  $12.1 million  of internally developed software which was determined to have no future use due to redundant software identified as part of a recent acquisition. In fiscal 2019, the Company recognized a gain of $1 5.7 million in relation to the sale of an investment held at cost acquired in prior years and subsequently sold during fiscal 2019. NOTE 3. OTHER (INCOME)/EXPENSE, NET Other (income)/expense, net consists of the following: Years ended June 30, 2020 2019 2018 Interest income on corporate funds $ (84.5) $ (97.6) $ (83.5) Realized (gains) / losses on available-for-sale securities, net (12.9) 0.9  2.5  Impairment of assets 29.9  12.1  —  Gain on sale of assets (5.8) (4.1) (0.7) Gain on sale of investment (0.2) (15.7) —  Non-service components of pension (income)/expense, net (see Note 10) (74.5) (6.7) 253.8  Other (income)/expense, net $ (148.0) $ (111.1) $ 172.1 