; or (ii) allow the contract to remain in effect and require the contracting dairy operation to repay a portion of the payments received under the contract, based on the severity of the violation. (c) Payments (1) In general The Secretary shall provide to a contracting dairy operation a payment for a month under this subsection and not under the margin protection program if the amount of the payment to the contracting dairy operation for that month under this section is greater than the amount that the contracting dairy operation would receive under the margin protection program. (2) Amount The amount of a payment to a contracting dairy operation under this subsection shall be equal to the product obtained by multiplying, as determined by the Secretary— (A) the payment quantity during the applicable month; (B) the difference obtained by subtracting— (i) the minimum milk price; and (ii) the All Milk price per hundredweight under the applicable Federal milk marketing order; and (C) 45 percent. (3) Payment quantity (A) In general Subject to subparagraph (B), the payment quantity for a contracting dairy operation for a month shall be equal to the hundredweight of milk marketed by the contracting dairy operation during the month. (B) Limitation The payment quantity described in subparagraph (A) for any month for a contracting dairy operation shall not exceed 4,166 hundredweight of milk. (4) Timing of payments The Secretary shall make a payment to a contracting dairy operation under this subsection not later than 60 days after the last day of the month for which the payment is made. . 3. Extension of margin protection program for dairy producers Section 1409 of the Agricultural Act of 2014 ( 7 U.S.C. 9059 ) is amended by striking 2018 and inserting 2023 .