sitestem Posted February 14, 2007 Share Posted February 14, 2007 Hi all, http://www.ditech.com/calculators/creditcard.html The above site takes a person's balance, interest rate and the desired amount of months they want to pay their credit card off. It then returns a figure that shows how much this person would have to pay off per month. My question is, what code could I use for this? I know it surrounds compound interest, but I haven't a clue where to start. Does anyone know how you would calculate such a thing? Thanks, Mike Link to comment https://forums.phpfreaks.com/topic/38517-credit-card-payoff-equation/ Share on other sites More sharing options...
Psycho Posted February 14, 2007 Share Posted February 14, 2007 Assuming you have the following variables: $principle //total payoff amount $periods //Number of months (or other periods) in which to pay off the loan $rate //Interest rate per period. If you are dealing with an APR and months, the rate would be APR/12. The formula to determine the payment per period would be as follows: $payment = ( $rate + $rate / ( pow((1+$rate), $periods) - 1) ) * $principle; Link to comment https://forums.phpfreaks.com/topic/38517-credit-card-payoff-equation/#findComment-184930 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.