How to Multiply Mileage by a Rate in a PDF Form
Question details
The user needs to set up an automatic calculation in a PDF mileage reimbursement form to multiply the entered miles by a specific rate.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Creating a digital mileage reimbursement form that requires automatic mathematical calculations.
- Observed behavior
- The form needs to compute the total reimbursement amount automatically based on user input for miles and a predefined fixed rate or a variable rate field.
Ensure your PDF document has fillable text fields already created and appropriately named for both 'Miles' and 'Amount' before setting up the calculation.
Calculate Reimbursement Using a Fixed Mileage Rate
Use this method if your organization has a set mileage reimbursement rate (e.g., 0.555) that remains constant.
By using Simplified Field Notation, you can easily instruct the PDF form to multiply the value entered in one field by a static number.
Right-click the 'Amount' or 'Total' text field in your PDF form where the final calculation should appear, and select 'Properties'.
In the Text Field Properties window, click on the 'Calculate' tab.
Select the radio button for 'Simplified Field Notation' and click the 'Edit' button.
Enter the formula `Miles * 0.555` in the JavaScript Editor window. Replace 'Miles' with the exact, case-sensitive name of your distance input field, and 0.555 with your specific reimbursement rate.
Click 'OK' to close the editor, then click 'Close' on the properties window. Test the calculation by entering a number in your Miles field.

Calculate Reimbursement Using a Variable Rate Field
Apply this solution if your mileage rate fluctuates and is inputted into a separate field on the same form.
Create and Manage Fillable PDF Forms with WPS Office
WPS Office offers a comprehensive PDF editor that allows you to effortlessly create, edit, and fill interactive PDF forms. With its robust toolset, you can easily insert text fields, manage properties, and streamline your digital document workflows.
- 1. Open Your Document: Launch WPS Office and open your PDF document using the WPS PDF editor.
- 2. Access Form Tools: Navigate to the 'Form' tab located on the top navigation ribbon.
- 3. Insert Text Fields: Select the 'Text Field' tool to click and drag new input boxes for 'Miles' and 'Amount' onto your document.
- 4. Configure Properties: Double-click the newly created text fields to adjust their names, appearance, and formats.
- 5. Save the Fillable PDF: Once your fields are set, save the document to lock in the interactive form elements for users to fill out.

Frequently Asked Questions
Why is my PDF form calculation not updating automatically?
If your calculation doesn't update, verify that the field names in your formula match the actual field names exactly, as they are case-sensitive. Additionally, check your PDF viewer's preferences to ensure automatic field calculation is enabled.
Can I use standard mathematical operators in Simplified Field Notation?
Yes, Simplified Field Notation in PDF forms supports all standard arithmetic operators, including `+` for addition, `-` for subtraction, `*` for multiplication, and `/` for division.
How do I format the calculated reimbursement amount as currency?
Open the properties for your 'Amount' field and go to the 'Format' tab. Choose 'Number' from the format category, set the decimal places to 2, and select your preferred currency symbol from the dropdown menu.




