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

Custom Calculation Script for Fillable Forms - PDFs

New Here ,
Sep 09, 2022 Sep 09, 2022

Copy link to clipboard

Copied

I am working on creating a form in which I need to calculate ship profit. My fields are as follows:

 

  • Our Cost
  • Customer Price
  • Surcharge
  • Subtotal (Customer Price + Surcharge)
  • Ship Profit

 

Here is the formula in plain english.  Can someone help me write the custom calculation please?

 

Subtotal - Our Cost/Subtotal

 

I need this to be a precentage, so I don't know if it then should be:

Subtotal minus Our Cost divided by Subtotal minus 1.

 

Thank you in advance for your help!  Below is a screen shot of my form as is.  

 

BrandiFuller_0-1662730505068.png

 

TOPICS
JavaScript

Views

198

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 ,
Sep 09, 2022 Sep 09, 2022

Copy link to clipboard

Copied

LATEST

1. Did you format "Ship Profit" field as percentage?

2. You want to show profit as percentage compared to "Our Cost"? Let's say "Our Cost" is 100 and "Subtotal" is 150 you want "Ship Profit" to show as 50%?

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