; and (3) provide to the Secretary an assurance that the institution will continue to meet each of the maximum total price guarantee requirements under this subsection for students who first enroll, or plan to enroll, in the institution during each award year included in the grant period. (d) Duration of minimum guarantee period (1) In general The minimum period during which a student shall be provided a guarantee under subsection (c) with respect to the maximum total price for completion of a program of study at an institution shall be the median time to credential of students who completed any undergraduate program of study at the institution during the most recent award year for which data are available, except that such minimum guarantee period shall not be less than the program length of the program of study in which the student is enrolled. (2) Limitation An institution shall not be required to provide a maximum total price guarantee under subsection (c) to a student after the conclusion of the 6-year period beginning on the first day on which the student enrolled at such institution. (e) Determination of maximum total price for completion (1) In general For the purposes of subsection (c) and the Pell Plus program under section 401(k), an institution shall determine, prior to the first award year in which a student enrolls at the institution, the maximum total price that may be charged to the student for completion of a program of study at the institution for the minimum guarantee period applicable to a student, before application of any Federal Pell grants or other Federal financial aid under this title. Such a maximum total price for completion shall be determined for students in each income category and student aid index category (as determined in accordance with section 132(c)(2)(A)). In determining the maximum total price for completion to be charged to each such category of students, the institution may consider the ability of a category of students to pay tuition and fees (including the required