Field help (VATFOR) 

Enter the formula number used to modify the calculation basis for this tax.This field is used when an exceptional tax must be calculated using a basis different from the ex-tax amount of the line. For example, some legislations base tax on quantities.

The result of the formula must be stored in the document line to enable the line calculation and total. Two fields, Amount 1 and Amount 2, store the calculated amount on a document line. One of those fields must be selected when a formula is defined. You can select the field in the Amount no. field.