If an annuity is for repaying a debt P with interest, the amount owed after n payments is: .
because the scheme is equivalent with borrowing the amount R/i to create a perpetuity with coupon R, and putting R/i-P of that borrowed amount in the bank to grow with interest i.