If you just want the formulas, check here.
Pretty scary...
For your type of problem, I think it would be best to just hack it out as follows (the computations are easily done in a spreadsheet):
Example: \$1000 is owed on a credit card that charges 3\% interest per month on outstanding balances. \$150 is paid on the card each month. Find the card balance for each month until the card is paid off. What is the final payment?
Solution: Note we have quite a bit to do here. We have to find the balance for each month, until the card is paid off.
So, we first find the balance after one month. Then we find the balance after the second month. Etc...
This process will be simplified if we note that
the change in balance between any two successive months is always
$$\eqalign{
{\rm change\ in\ balance\ } &={\rm\ interest\ charged\ } - {\rm \ payment\ made\ }\cr
&=(0.03)\cdot{\rm\ old\ balance\ } - 150.}
$$
So, for any two successive months:
$$
{\rm new\ balance\ }= {\rm old\ balance\ }+ (0.03)\cdot {\rm old\ balance\ } -150.
$$
After one month, the old balance is 1000 and the new balance is
$$
1000 +(0.03)\cdot1000-150= 880.
$$
After the second month, the old balance is 880 and the new balance is
$$
880 +(0.03)\cdot880-150= 756.40.
$$
After the third month, the old balance is 756.40 and the new balance is
$$
756.4 +(0.03)\cdot756.4-150= 629.09.
$$
Continuing in this manner we find:
The balance after month 5 is 362.90
The balance after month 6 is 223.79
The balance after month 7 is 80.50.
So, it takes 8 months to pay the card off and the final payment is $80.5*(1.03)=82.92$.
The total interest can be found by adding up the payments made and subtracting the initial balance.