; (ii) in subparagraph (B), by inserting before the period at the end the following: for any period of instruction through June 30, 2025 ; and (iii) by adding at the end the following: (C) Annual limits Notwithstanding any provision of this part or part B, for any period of instruction beginning on or after July 1, 2025, the maximum annual amount of Federal Direct Unsubsidized Stafford loans that a graduate or professional student may borrow in any academic year (as defined in section 481(a)(2)) or its equivalent shall be median cost of college (as defined in section 472A) of the program of study in which the student is enrolled, except that the sum of such annual loan amount and other financial assistance (as defined in section 480(i)) that the student receives for such academic year may not exceed the cost of attendance of such student. (D) Aggregate limits Notwithstanding any provision of this part or part B, for any period of instruction beginning on or after July 1, 2025, the maximum aggregate amount of Federal Direct Unsubsidized Stafford loans that— (i) a graduate student may borrow shall be $100,000; and (ii) a professional student may borrow shall be $150,000. (E) Exception for certain students (i) In general The provisions listed in clause (ii) shall not apply with respect to any individual who, as of June 30, 2025, is enrolled in a program of study at an institution of higher education, and has received a loan (or on whose behalf a loan was made) under this part for such program, during the individual’s expected time to completion of such program, as determined by calculating by the difference between— (I) the program length for the program of study in which such individual is enrolled