; plus . (2) Treatment of premium and cost-sharing revenues from Medicaid buy-in program (A) In general For purposes of section 1903(a)(1) of the Social Security Act ( 42 U.S.C. 1396b(a)(1) ), for any fiscal quarter during which a State collects premiums, cost-sharing, or similar charges under subsection (k) of section 1916 of such Act ( 42 U.S.C. 1396o ) (as added by this Act), including any advance payments of premium tax credits under section 1412 of the Patient Protection and Affordable Care Act or payments for cost-sharing reductions under section 1402 of such Act that are received by the State, the total amount expended during such quarter as medical assistance for individuals who buy into Medicaid coverage under subclause (XXIII) of section 1902(a)(10)(A)(ii) of the Social Security Act (as added by this Act) shall be reduced by the amount of such premiums or charges. (B) Treatment of excess premiums Each State that collects premiums or similar charges under subsection (k) of section 1916 of the Social Security Act ( 42 U.S.C. 1396o ) (as added by this Act) in a fiscal year shall pay to the Secretary of Health and Human Services, at such time and in such form and manner as the Secretary shall specify, an amount equal to 50 percent of the amount, if any, by which— (i) the total amount of such premiums and charges collected by the State for such year