How apr is calculated
Find the monthly discount rate at which the present value of the scheduled payments equals net loan proceeds. Multiply that monthly rate by twelve for nominal annual APR; this differs from an effective annual yield.
Worked example
A $20,000 loan at 6.5% with no fees has a modeled APR of 6.5%. With upfront financing fees, the same payments repay smaller net proceeds, so the modeled APR rises.
At 6% for five years with $500 of fees paid upfront, the $386.66 payment repays net proceeds of $19,500. Solving $386.66 × (1 − (1 + i)^−60) ÷ i = $19,500 gives i ≈ 0.588% a month, an APR of about 7.058%, and a total finance charge of $3,699.36.