Aside from a minor error in calculating the monthly payment A, for a loan of B0, and monthly interest rate of r, for a number of months N
A=B0r/(1-1/(1+r)N)= in our case (6000×.1/12)/(1-1/(1+.1/12)24) = 276.869558
The balance after the kth payment, Bk = B0(1+r)k - (A/r)×((1+r)k-1)
B4 = 5081.1154. If he pays off the loan at the time when the fifth payment is due, the interest is
rB4 =5081.1154× .1/12 = 44.28086527
The total final payment in this case is 5123.4577.
The mount of interest in this case is r(B0+B1+B2+B3+B4)=230.9359976
The total interest for the 24 month loan would be 644.8693926
The savings for early payment is 413.933395