; and (ii) not later than 30 days after the date of enactment of this Act, obligate and disburse the amounts allocated under clause (i) in accordance with those allocations and provide the recipients with any necessary guidance for use of the funds; and (B) (i) not later than 7 days after the date of enactment of this Act and after setting aside amounts under subparagraph (A)— (I) allocate 50 percent of any such remaining amounts under the formula specified in subsections (a), (b), and (e) of section 414 of the McKinney-Vento Homeless Assistance Act ( 42 U.S.C. 11373 ) for each State, metropolitan city, and urban county that is to receive a direct grant of such amounts; (II) allocate 50 percent of any such remaining amounts through the formula used by the Secretary to distribute the second allocation of grants in accordance with the formula described in the matter under the heading Department of Housing and Urban Development—Community Planning and Development—Homeless Assistance Grants in title XII of division B of the CARES Act ( Public Law 116–136 ) for each State, metropolitan city, and urban county that is to receive a direct grant of such amounts; and (III) notify each direct grantee of the total amount to be allocated under this clause