; and (ii) determined to be unqualified for service in the commissioned officer corps of the Administration because of a physical or medical condition that was not the result of the person's own misconduct or grossly negligent conduct. (4) Obligation as debt to United States An obligation to reimburse the Secretary imposed under paragraph (2) is, for all purposes, a debt owed to the United States. (5) Discharge in bankruptcy A discharge in bankruptcy under title 11, United States Code, that is entered less than 5 years after the termination of a written agreement entered into under subsection (b)(1)(C) does not discharge the person signing the agreement from a debt arising under such agreement or under paragraph (2). (i) Regulations The Secretary may promulgate such regulations and orders as the Secretary considers appropriate to carry out this section. . (b) Clerical amendment The table of sections in section 1 of the Act entitled An Act to authorize the Hydrographic Services Improvement Act of 1998, and for other purposes ( Public Law 107–372 ), as amended by section 202(c), is further amended by inserting after the item relating to section 268 the following: Sec. 269. Student pre-commissioning education assistance program. . 204. Limitation on educational assistance (a) In general Each fiscal year, beginning with the fiscal year in which this Act is enacted, the Secretary of Commerce shall ensure that the total amount expended by the Secretary under section 267 of the National Oceanic and Atmospheric Administration Commissioned Officer Corps Act of 2002 (as added by section 201(a)), section 268 of such Act (as added by section 202(a)), and section 269 of such Act (as added by section 203(a)) does not exceed the amount by which— (1) the total amount the Secretary would pay in that fiscal year to officer candidates under section 203(f)(1) of title 37, United States Code (as added by section 306(d)), if such section entitled officers candidates to pay at monthly rates equal to the basic pay of a commissioned