%

Formula

B = (A * (1+r)n) - [ (P/r) * ((1+r)n- 1 ) ]

Where,
B = Balance Amount
A = Loan Amount
P = Payment Amount
r = Rate of Interest (compounded)
n = Number of time periods

Rate of Interest compounded is,
If Monthly,
r = i / 1200

If Quarterly,
r = i / 400

If Half yearly,
r = i / 200

If Yearly,
r = i / 100