Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Advanced Techniques / August 2006



Tip: Looking for answers? Try searching our database.

CF Mortgage Calcs? ? NEED APR

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael Evangelista - 30 Aug 2006 05:58 GMT
I am almost done with a very customized mortgage calculator in CF ( actually more of a 'mortgage quote' script) but I also need
some decent 'canned' calcs, for basic monthly payment,
amortization, etc.

The other missing piece of my puzzle is the ever-elusive APR formula. I know somebody,somewhere must have the code already
working for this... I just wish I could find it, and soon!

Any suggestions for either of these is greatly appreciated!

Signature

Michael Evangelista
Evangelista Design / Evangelista Consulting, inc.
www.evangelista-web.com
Custom Small Business Website Solutions

Michael Evangelista - 30 Aug 2006 17:50 GMT
APR is now working thanks to Hal and others' fine help with the formula.

Here is my CFscript in case it is of value to anyone else...

<cfscript>
    loanAmount = form.LoanAmount;
    interestRateAnnual = loanRate;
    origIntRate = interestRateAnnual/1200;
    loanMonths = loanTerm * 12;
  includedFees =  (origination+processingfee+underwritingfee+documentprepfee);
  prepaidInt = (interestRateAnnual/100/365)*loanAmount*15;
     extraCost =  includedFees + prepaidInt;
  // extraCost =  2000;
     points=0;

     monthlyPayments = ((loanAmount + extraCost) * origIntRate * ((1 + origIntRate)^loanMonths)) / (((1 +
origIntRate)^loanMonths) - 1) ;

// THIS IS THE APR CALCULATION
    APRincrease = (extracost+loanAmount*points/100) / (loanAmount-ExtraCost-loanAmount*points/100) * 10+ origIntRate;

   APR = APRincrease+loanRate;
</cfscript>

Signature

Michael Evangelista
Evangelista Design / Evangelista Consulting, inc.
www.evangelista-web.com
Custom Small Business Website Solutions

>I am almost done with a very customized mortgage calculator in CF ( actually more of a 'mortgage quote' script) but I also need
>some decent 'canned' calcs, for basic monthly payment,
[quoted text clipped - 4 lines]
>
> Any suggestions for either of these is greatly appreciated!
Michael Evangelista - 30 Aug 2006 17:50 GMT
Still seeking a CF amortization calculator among other things

Signature

Michael Evangelista
Evangelista Design / Evangelista Consulting, inc.
www.evangelista-web.com
Custom Small Business Website Solutions

>I am almost done with a very customized mortgage calculator in CF ( actually more of a 'mortgage quote' script) but I also need
>some decent 'canned' calcs, for basic monthly payment,
[quoted text clipped - 4 lines]
>
> Any suggestions for either of these is greatly appreciated!
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.