Skip to main content
Participant
April 20, 2020
Question

Mathematical calculations for fillable pdf

  • April 20, 2020
  • 1 reply
  • 169 views

Hi! I am a beginner and need help developing two calculations for my fillable pdf. I believe it has to be in javascript.

 

The idea is the following: 

* The person has a "balance" and it will be divided into "x" monthly payments. Below is an example-

Field A is the balance: $1,300

Field B is the total # of months: 12

Field C is the balance divided by 11 months: $108

Field D is the remaining monthly payment: $112

 

* I need to use whole numbers, that is way field C is rounded down and the remaining balance is passed on to field D. 

 

I am sorry if this is confusing. If someone can point me in the right direction, I would appreciate it!

Thank you!

Caroline 

 

    This topic has been closed for replies.

    1 reply

    try67
    Community Expert
    Community Expert
    April 20, 2020

    Because you want to round the results you need to use a script. Otherwise it would have been possible with the built-in options under the Calculate tab.

    This tutorial is a good starting place: https://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations