; and (B) secures an agreement providing such funding as is necessary to pay the non-Federal share of the capital costs of the federally owned storage project. (3) Notification The Secretary shall submit to the appropriate committees of Congress a written notification that an agreement that satisfies the requirements in paragraph (2)(B) has been secured not later than 30 days after the agreement is secured. (4) Expansion or upgrade The Secretary shall require, as a condition for design, study, or any other participation in the expansion or upgrade of a federally owned storage project, the agreement of— (A) if applicable, any entity that has an existing water service contract or repayment contract for more than 60 percent of the capacity or yield of the federally owned storage project, that the expansion will not adversely affect any right or interest of the entity under the water service contract or repayment contract, as applicable; and (B) if applicable, a non-Federal entity that, pursuant to a formal operations and maintenance transfer contract or other legal agreement with the Secretary carries out the operations and maintenance of the federally owned storage project. (d) Non-Federal storage projects (1) In general Subject to the requirements of this section, the Secretary may participate in the design, study, construction, expansion, upgrade, or capital repair of a non-Federal storage project in an amount equal to not more than 25 percent of the total cost of the non-Federal storage project. (2) Conditions for federal design and study funding The Secretary shall only participate in the design or study of a non-Federal storage project under this section if— (A) the Governor, political subdivision, department, or public agency of the State in which the non-Federal storage project is located supports Federal funding of the non-Federal storage project