; or (B) the date that is 30 days after the date of the enactment of an appropriations Act providing for the collection and obligation of fees under this subsection for a fiscal year. (3) Amount of fee The amount of a fee under paragraph (1) shall be equal to the amount determined by the Secretary under paragraph (4). (4) Determination of amount of fee (A) In general The Secretary shall, not later than 180 days before the start of each fiscal year that begins after September 30, 2019, establish, for the next fiscal year, the amount of the fee payable under this subsection by a covered entity using purchase data submitted by covered entities described in paragraph (1), and using data submitted by manufacturers on sales to covered entities of covered outpatient drugs subject to an agreement under this section, pursuant to regulations to be issued by the Secretary. Such amount, with respect to a covered entity and year, shall not exceed 0.1 percent of the total paid during the previous year by such covered entity to manufacturers for purchases of covered outpatient drugs subject to an agreement under this section. (5) Use of fees (A) In general Any fee collected under paragraph (1) shall be used for purposes of administering this section, enhancing program integrity and oversight activities under this section (including through audits under this section of covered entities and manufacturers), and promoting access to clinical and cost-effective pharmacy services among safety net clinics and hospitals that participate under this section, such as through— (i) the development of a multi-functional web-based system to collect fees under paragraph (1); (ii) the improvement of the integrity, transparency, security, and reliability of the Office of Pharmacy Affairs Information System, including to ensure that the database continues to meet the needs of external stakeholders