The formula for constant annuity (TVM reimbursement) is :

a = PV * i / (1-(1+i)^-n)

write a program in as few possible steps to solve this equation, where you have previously entered the following variables in the stack : PV (= present value or lended amount, i (= interest (not in %, ie 6% = .06), n (number of payments

NB :

European people :

i has to be converted from the basic rate. If rate is anuual and payments are monthly, then im = 1-(1+iy)^(1/12)

American people :

the shown rate is different from the yield, but the monthly rate is calculated by dividing the annual rate by 12, so im=iy/12

Thibaut