Rate and term convert the payment into principal
For the same payment, a longer term increases borrowing capacity but also raises the total cost of credit.
A higher interest rate or more expensive insurance mechanically reduces the amount that can be financed.