F = c + [( amt * d ) / 100 ] and P = ( r * F ) / ( (1+r)-N - 1 )
Where,
amt = Desire amount range
d = Down payment
c = Closing Cost
P = Payment Amount
F = Future Value
r = Rate of Interest (compounded)
N = Number of Payments
Rate of Interest Compounded is,
If Monthly, r = i / 1200 and N = n * 12
If Quarterly, r = i / 400 and N = n * 4
If Half yearly, r = i / 200 and N = n * 2
If Yearly, r = i / 100 and N = n