The loan calculators use the following formula to calculate repayment figures:
Monthly payment = [ r + r / ( (1+r) ^ months -1) ] x loan amount Where: r = yearly rate / 12.