Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to calculate APR

Participant ,
Jan 03, 2022 Jan 03, 2022

Hi
does anyone know the formula for calculating the gross annual percentage rate (APR) of a mortgage?
I use this function to calculate the mortgage payment amount:
var R = Number (this.getField ("RATE"). valueAsString) / 100;
var N = Number (this.getField ("NUMBER OF YEARS"). valueAsString) * 12;
var P = Number (this.getField ("AMOUNT"). valueAsString);
event.value = P * (R / 12) * (Math.pow ((1 + (R / 12)), N)) / ((Math.pow ((1 + (R / 12)), N)) - 1)

Then I have the fields "Investigation", "appraisal", "fire insurance for the house"

From the data entered in the fields listed above, I would like to be able to find the "gross annual percentage rate" (APR).

Please, someone knows the function

TOPICS
JavaScript
181
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation