On this page you will find the generic antidumping (AD) margin calculation programs.
These programs are the starting point of our AD calculations.
For a particular company in a proceeding, a case analyst will modify the boilerplate code as required for their case.

There are two types of AD calculations – market-economy (ME) and nonmarket-economy (NME).
The AD programs (including a common macro program) required for each are found below.
In both types, we compare prices in the United States to some minimum standard called, Normal Value (NV).

Market-Economy Programs

In ME calculations, we base NV on the company’s actual costs and prices in the home market.
If no suitable comparison market is found, we base NV on Constructed Value (CV) which is a cost-based buildup of a surrogate price.

When a home market is the basis of NV, the first program used is the ME Home Market (HM) program.
The HM program is where the case analyst enters information about the company’s costs and sales in the home market.
The ME Macros program is where the bulk of the code is stored.
When the HM program is executed, it calls up the relevant portions of code from the ME Macros program to process the HM sales and saves the results for use in the HM program.
After the HM Program is run, the ME Margin Calculation program is completed by the analyst.
When executed, the ME Margin Calculation program calls in relevant portions of the ME Macros Program to process U.S. sales and then compare them to HM sales or CV to calculate the AD duty rate.
When there is no home market, only the ME Margin Calculation program and ME Macros program are required for homes of U.S. prices straight to CV.

Nonmarket-Economy Programs

In nonmarket-economy AD calculations, NV is comprised of the company’s factors of production (i.e., recipe for manufacturing the goods in question) valued in some appropriate surrogate country.