; and (B) may be used for the activities described in paragraph (1)(B) and for the administrative costs of administering any funds appropriated to the Department under the heading Community Planning and Development—Community Development Fund for any major disaster declared under section 401 of the Robert T. Stafford Disaster Relief and Emergency Assistance Act ( 42 U.S.C. 5170 ) in any Act before the establishment of the Fund. (d) Interchangeability of prior administrative amounts Any amounts appropriated in any Act prior to the establishment of the Fund and transferred to the account under the heading Program Offices Salaries and Expenses—Community Planning and Development , or any predecessor account, for the Department for the costs of administering funds appropriated to the Department under the heading Community Planning and Development—Community Development Fund for any major disaster declared under section 401 of the Robert T. Stafford Disaster Relief and Emergency Assistance Act ( 42 U.S.C. 5170 ) shall be available for the costs of administering any such funds provided by any prior or future Act, notwithstanding the purposes for which those amounts were appropriated and in addition to any amount provided for the same purposes in other appropriations Acts. (e) Availability of amounts Amounts appropriated, transferred, and credited to the Fund shall remain available until expended. (f) Formula allocation Use of amounts in the Fund for grants shall be made by formula allocation in accordance with the requirements of section 123(a) of the Housing and Community Development Act of 1974, as added by section 6. (g) Authorization of appropriations There are authorized to be appropriated to the Fund such sums as may be necessary to respond to current or future major disasters declared under section 401 of the Robert T. Stafford Disaster Relief and Emergency Assistance Act ( 42 U.S.C. 5179 ) for grants under section 123 of the Housing and Community Development Act of 1974, as added by section 6. 6. Establishment of