A local government shall set the term of a housing rehabilitation loan it approves under this chapter. The term may not exceed 20 years.