the application of subsection (d), is less than the aggregate amount of costs described in subsection (a) for such State for such period, than the portion of such payment that the State is required to pass through to a local jurisdiction under paragraph (1) shall not exceed the amount which bears the same ratio to the total amount of costs incurred by such local jurisdiction for such period as— (A) the amount of the payment received by the State under this section for the period