a major portion of a course is complete (a) Educational institutions operating on quarter or semester system If an individual eligible for educational assistance under this chapter is enrolled under this chapter in an educational institution regularly operated on the quarter or semester system and the period of such individual’s entitlement under this chapter would, under section 3013, expire during a quarter or semester, such period shall be extended to the end of such quarter or semester. (b) Other educational institutions If an individual eligible for educational assistance under this chapter is enrolled under this chapter in an educational institution not regularly operated on the quarter or semester system and the period of such individual’s entitlement under this chapter would, under section 3013, expire after a major portion of the course is completed, such period shall be extended to the end of the course or for 12 weeks, whichever is the lesser period of extension. . (2) Clerical amendment The table of sections at the beginning of such chapter is amended by striking the item relating to section 3031 and inserting the following new item: 3031. Extension of entitlement to educational assistance expiring during a quarter or semester or after a major portion of a course is complete. . (3) Conforming amendments Chapter 33 of title 38, United States Code, is amended— (A) in section 3018C(e)(3)(B)— (i) by striking (i) The Secretary and inserting The Secretary