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

Calculate Term Loan

Participant ,
Apr 24, 2021 Apr 24, 2021

Copy link to clipboard

Copied

Views

2.3K

Translate

Translate

Report

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

correct answers 1 Correct answer

Community Expert , Apr 28, 2021 Apr 28, 2021

You can use this,just change field names if neccessary:

var a = Number(this.getField("Amount").value);
var ir = Number(this.getField("Interest Rate").value);
var lt = Number(this.getField("Loan Term").value);
var n = lt*12;
var i = ir/100/12;
var total = (a*i*Math.pow(1+i, n))/(Math.pow(1+i, n)-1);
if(a == "" || ir == "" || lt == "")
event.value = "";
else
event.value = total;

Votes

Translate

Translate
LEGEND ,
Apr 24, 2021 Apr 24, 2021

Copy link to clipboard

Copied

The formula appears complete and everything in it necessary. It can't be simplified, you now have to convert it to JavaScript. Or when you say "simplify" do you mean "please do my work for me"?

Votes

Translate

Translate

Report

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
Participant ,
Apr 25, 2021 Apr 25, 2021

Copy link to clipboard

Copied

I want to simplify it. I have three fields

TermMonths

Principal 

Rate %

Votes

Translate

Translate

Report

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
Community Expert ,
Apr 25, 2021 Apr 25, 2021

Copy link to clipboard

Copied

Not everything can be simplified. Just use the formula from those sites.

Votes

Translate

Translate

Report

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
Enthusiast ,
Apr 25, 2021 Apr 25, 2021

Copy link to clipboard

Copied

Is rate added to monthly rate?

5 years * 12 month = 60 =  20000/ 60 =333.33*1.05(5%)= 350$ monthly rate?

Votes

Translate

Translate

Report

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
LEGEND ,
Apr 25, 2021 Apr 25, 2021

Copy link to clipboard

Copied

Stop trying to simplify it. Use the formula as shown. Is the problem that you don't understand how to read it? You CANNOT implement a formula that you do not understand, and this is where I sometimes get stuck and need to go do more study.

 

Is it that you don't understand Especially the n Superscript, also written as ^n? Which means "to the power of n"?

Votes

Translate

Translate

Report

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
Participant ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

Hi, I can write the formula myself. In excel it is very easy to do this calculation but in pdf form, I do not know how can I calculate ^n value. 

 

Votes

Translate

Translate

Report

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
Community Expert ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

Use:

Math.pow(x,y)

to calculate x^y.

Votes

Translate

Translate

Report

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
Participant ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

I will try out this. 

Thank you.

Votes

Translate

Translate

Report

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
Community Expert ,
Apr 29, 2021 Apr 29, 2021

Copy link to clipboard

Copied

++ In addition to the guidance provided by all others here,

 

Just curious, would you mind providing the formula that you're using in MS Excel?

 

Sometimes formulas in MS Excel have nested IF / IF ELSE functions to evaluate one or more conditions.

Votes

Translate

Translate

Report

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
Participant ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

Yes, it is a monthly rate. The result of your calculation should be 

Monthly Payment = $ 377.42 not $350. Thank you

Votes

Translate

Translate

Report

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
Community Expert ,
Apr 25, 2021 Apr 25, 2021

Copy link to clipboard

Copied

Let's begin by defining which of the three loan payment calculation formulas do you really need to use.

 

In the links that you've shared, you have one formula that breaks down an example for a mortgage payment, the other one to calculate a vehicle loan.

 

The other link is an online loan calculator.

 

So first of all, which of these tasks are you inquiring about:

 

  • Are you asking to create a script that calculates monthly payments for a mortgage?
  • or a script to calculate monthly payments for a vehicle loan?
  • Or are you trying to outsource for a developer in these forums to write from scratch a code for a PDF claculator entirely in Acrobat JavaScript, and with that, be able to calculate both mortgages and vehicle loans when a PDF is filled with some information?

 

 

 

 

 

Votes

Translate

Translate

Report

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
Community Expert ,
Apr 28, 2021 Apr 28, 2021

Copy link to clipboard

Copied

You can use this,just change field names if neccessary:

var a = Number(this.getField("Amount").value);
var ir = Number(this.getField("Interest Rate").value);
var lt = Number(this.getField("Loan Term").value);
var n = lt*12;
var i = ir/100/12;
var total = (a*i*Math.pow(1+i, n))/(Math.pow(1+i, n)-1);
if(a == "" || ir == "" || lt == "")
event.value = "";
else
event.value = total;

Votes

Translate

Translate

Report

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
New Here ,
Dec 26, 2021 Dec 26, 2021

Copy link to clipboard

Copied

Nesa - this forumla was very helpful.  Is there a way to calculate the first payment anywhere from 30 to 90 days out?

Votes

Translate

Translate

Report

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
New Here ,
Dec 26, 2021 Dec 26, 2021

Copy link to clipboard

Copied

This is specifically for automotive financing.

Votes

Translate

Translate

Report

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
Community Beginner ,
Jul 19, 2023 Jul 19, 2023

Copy link to clipboard

Copied

Hi, is there a way to calculate monthly payment and interest? 

I've attached a copy, I need help calculating Text1. The Mortgage Amount is Text614.

Votes

Translate

Translate

Report

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
Community Expert ,
Jul 19, 2023 Jul 19, 2023

Copy link to clipboard

Copied

Can you explain how should formula for field "Text1" work?

Votes

Translate

Translate

Report

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
Community Beginner ,
Jul 19, 2023 Jul 19, 2023

Copy link to clipboard

Copied

It should calculate the total monthly payment, including principal and interest.

 

I have it in excel, the format is: =-PMT(E11/12,E12,G32)

E11=Interest Rate

E12=Loan Terms

G32=Loan Amount

 

I tried your formula above but it gave me $1,014.08 instead of $1,245.34.

 

 

Votes

Translate

Translate

Report

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
Community Beginner ,
Jul 19, 2023 Jul 19, 2023

Copy link to clipboard

Copied

LATEST

I figured it out, I took a closer look at line:

var n = lt*12;

 

I deleted *12 since that term is written out in months. Thank you for your help 🙂

Votes

Translate

Translate

Report

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