The loan period of housing provident fund is 1 ~ 30 years, and the loan period plus the age of the main borrower shall not exceed the prescribed age (65 years for male employees and 60 years for female employees), and the age of the stock house plus the loan period shall not exceed 40 years.
If it's the age of the house, you can borrow 17 years at most, which of course depends on your age.