How is loan interest rate determined

HomeLenze6326How is loan interest rate determined