Skip to main content
Participant
January 29, 2025
Answered

I need to Calculate the Federal Poverty Level Percentage

  • January 29, 2025
  • 1 reply
  • 1068 views

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.

 

Correct answer PDF Automation Station

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.

1 reply

PDF Automation Station
Community Expert
Community Expert
January 29, 2025

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);
}

 

 

 

Participant
January 29, 2025

it is giving me syntaxerror: unterminated string literal

2: at line 3

PDF Automation Station
Community Expert
Community Expert
January 29, 2025

Typo.  Script corrected.