; (B) by inserting before the period at the end the following: , and (IV) the pharmacy benefit provided by the entity (or pharmacy benefit manager on behalf of the entity under a contract), the other specified entity (as defined in paragraph (9)(D)), or by another arrangement between the entity and the pharmacy benefit manager, shall comply with the requirements of section 1927(e)(6) ; and (C) by moving the left margin 2 ems to the left. (3) Effective date The amendments made by this subsection apply to contracts between States and managed care entities, or other specified entities, that have an initial effective date or are renewed on or after the date that is 18 months after the date of enactment of this Act. (b) Ensuring accurate payments to pharmacies under Medicaid (1) In general Section 1927(f) of the Social Security Act ( 42 U.S.C. 1396r–8(f) ) is amended— (A) by striking and after the semicolon at the end of paragraph (1)(A)(i) and all that precedes it through (1) and inserting the following: (1) Determining pharmacy actual acquisition costs The Secretary shall conduct a survey of retail community pharmacy drug prices to determine the national average drug acquisition cost as follows: (A) Use of vendor The Secretary may contract services for— (i) with respect to retail community pharmacies, the determination of retail survey prices of the national average drug acquisition cost for covered outpatient drugs based on a monthly survey of such pharmacies; and