the amount allocated to such facility by the Secretary under this subsection. (B) Aggregate limitation The Secretary many not allocate more than $15,000,000,000 to facilities designated under this subsection. (5) Standards for designation The Secretary shall not designate a facility for purposes of this subsection unless— (A) an application has been submitted to the Secretary with respect to such facility which meets the requirements of paragraph (7), (B) such facility is located in the United States, (C) such facility has been nominated by a State or local government during the 180-day period ending with the date of such application, and (D) such State or local government provides written assurances of the accuracy of the application with respect to such facility. (6) Priority for retooling of existing facilities The Secretary shall give priority in making designations and allocations under this subsection to the retooling of existing manufacturing facilities, especially the oldest facilities or facilities that have been in existence for at least 20 years (whether or not such facilities are idle). (7) Conditional designations The Secretary may approve a designation under this subsection subject to such conditions as the Secretary may determine are necessary to satisfy the purposes of this subsection or to protect the national security interests of the United States. (8) Application An application with respect to a facility for designation under this subsection shall include— (A) a written agreement that— (i) all laborers and mechanics employed by contractors or subcontractors during construction, alteration, or repair that is financed, in whole or in part, by the proceeds of the issue shall be paid wages at rates not less than those prevailing on similar construction in the locality, as determined by the Secretary of Labor in accordance with sections 3141–3144, 3146, and 3147 of title 40, United States Code, and (ii) the Secretary of Labor shall, with respect to the labor standards described in clause (i), have