Skip to main content
Participant
Jan 29, 2025 7:36 PM UTC
Answered

I need to Calculate the Federal Poverty Level Percentage

The two imput boxes are monthly income and # of people. I need to muliply the monthly income by 12 to get the annual. Then i need to take the (number of people - 1) * 5500+15650. Then it needs to divide the annual number/the second equation. Then it needs to be turned into a percentage.

 

PDF Automation Station
Community Expert
Jan 30, 2025 2:50 PM UTC

Here is the form I am trying to make work.


Your field name is monthy income (no L) but the script says monthly income.  Ether change the script to say monthy or change the field name to say monthly.

10 replies

PDF Automation Station
Community Expert
Community Expert
Jan 29, 2025 7:55 PM UTC

Format the field where the solution will appear as a percentage, then enter the following custom calculation script in it:

 

 

var income=this.getField("monthly income").value;
var numpeople=this.getField("# of people").value;
if(!income || !numpeople)
{event.value=""}
else
{
event.value=income*12/((numpeople-1)*5500+156540);
}

 

 

 

Translate
Participant
Jan 29, 2025 8:39 PM UTC

it is giving me syntaxerror: unterminated string literal

2: at line 3

Translate
PDF Automation Station
Community Expert
Community Expert
Jan 29, 2025 9:00 PM UTC

Typo.  Script corrected.

Translate