Jump to content

2012us

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

2012us's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I incorporated the code into my project, it works like a charm. Thank you, thank you for your help! 2012
  2. Thanks litebearer! I will analyze this great-looking code. Will reply after. Grateful
  3. This is the code I used for the educated guess part of the equation "r-guess", ... $r = 2 * ($loan_months * ($apr_pmt - $amount)) / ($loan_months * $amount); Legend.... C = $amount = loan amount P = $apr_pmt = monthly payment N = $loan_months = loan term in months
  4. I have the adjusted payment amount that is used in the final calculation (payment). I have already completed the basic mortgage part of the process, but calculating the APR using the Newton-Raphson equation is where I'm stuck. Thanks!
  5. Hi, I am new here and have a problem with a math formula. I am trying to obtain an Annual Percentage Rate for a mortgage that has a 5% Interest Rate compounded monthly. The calculations for the original loan amount (payment, interest rate, term) are complete. But those numbers do not include the loan charges such as closing costs, points, etc. The APR, through the Truth in Lending Act, is used by lenders to disclose the increase. It is my understanding that you have to calculate a new monthly payment including the loan amount charges (points, fees, etc), added onto the original loan amount. That number is used to solve for APR in further calculations. I have already done this and have a good number to start. The problem is that an iterative process must be used to calculate the APR based on the original loan amount and calculated payment for the extra costs; that is where I am at a stumbling block. I got the formula here ... http://www.efunda.com/formulae/finance/loan_calculator.cfm I need to duplicate the formulas in scenario #2 to PHP if possible so I can solve for the APR. The formulas make use of the Newton_Raphson method. The Newton-Raphson method finds the slope (the tangent line) of the function at the current point and uses the zero of the tangent line as the next reference point. The process is repeated until the root is found (as described on efunda.com). In this case the root would be the APR. And I am lost down the rabbit hole of voodoo math. Help would be much appreciated... Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.