; and (B) by adding at the end the following new subsection: (r) Repayment terms for federal family education loans (1) Applicability of programs available under this section The Secretary shall apply subsections (d), (e), (f), (l), (m), and (o) to all loans made under part B as if such loans were made under this part. (2) Payment of balance and interest In carrying out paragraph (1), the Secretary shall pay to the holder of a loan made under part B the amount of principal, interest, or special allowance payments necessary to apply subsections (d), (e), (f), (l), (m), and (o) to such loan, as appropriate. . 3. Offset (a) Public service loan forgiveness Section 455(m) of the Higher Education Act of 1965 ( 20 U.S.C. 1087e(m) ) is amended— (1) in paragraph (1), by striking The Secretary and inserting Except as provided in paragraph (2)(B), the Secretary ; and (2) in paragraph (2)— (A) by striking After the and inserting the following: (A) In general Except as provided in subparagraph (B), after the ; and (B) by adding after subparagraph (A) the following: (B) Cap on loan cancellation With respect to any eligible Federal Direct Loans made to a new borrower on or after July 1, 2017, the Secretary may cancel, in accordance with subparagraph (A), up to $57,500 of the obligation on such loans. . (b) Income-Based repayment Section 493C of the Higher Education Act of 1965 ( 20 U.S.C. 1098e ) is amended by adding at the end the following: (f) Special terms for new borrowers On and after July 1, 2017 Subsection (e)(2) shall not apply with respect to any loan made to a new borrower on or after July 1, 2017, for enrollment in a graduate or professional program. .