The maximum loan duration is 30 years, or until the borrower reaches the age of 65, whichever comes first.