phpshane Posted January 4, 2008 Share Posted January 4, 2008 Hi All I'm new to php so please be kind. Within osCommerce V2.2 RC1, (products_price) I'd like to add two monthy apr monthy payment amount below the price of the product. One showing a single amount of 24 months and another showing 36 months. Their seem to be plenty of calculator out there, but all to calculate the full amount over a 24 month or 36 month showing every piece of detail. I just like some guidance on how to achive a simple monthy figure below the products_price! Regards. Shane. Quote Link to comment https://forums.phpfreaks.com/topic/84549-basic-apr-calculator/ Share on other sites More sharing options...
hitman6003 Posted January 4, 2008 Share Posted January 4, 2008 Not sure about oscommerce, but if I remember high school math correctly, interest can be calculated as so: $total_with_interest = $price * pow((1 + $interest_rate), $years_financed); Course, i could be completely wrong.... Quote Link to comment https://forums.phpfreaks.com/topic/84549-basic-apr-calculator/#findComment-430772 Share on other sites More sharing options...
phpshane Posted January 4, 2008 Author Share Posted January 4, 2008 Thanks hitman6003 I'll give it ago. Regards. Shane. Quote Link to comment https://forums.phpfreaks.com/topic/84549-basic-apr-calculator/#findComment-430775 Share on other sites More sharing options...
hitman6003 Posted January 4, 2008 Share Posted January 4, 2008 $interest_rate should be expressed as a portion of 1...i.e. 5% interest would be ".05". Quote Link to comment https://forums.phpfreaks.com/topic/84549-basic-apr-calculator/#findComment-430780 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.