Description
Subtract discount from invoiceValue only when discountAllowed, then add freight only when freightIncluded.
A tax or rebate calculation depends on a valuation base, fractional rate, sequencing, and explicit inclusions or exclusions. Those inputs must come from the applicable jurisdiction and transaction rules.
Subtract discount from invoiceValue only when discountAllowed, then add freight only when freightIncluded.
When to use this tool
Use Customs Discount Dutiable Base Flag when you need a supplied-rule tax-base or payment component.
How to use the tool and how it works
- Enter invoiceValue, discount, freight, discountAllowed, freightIncluded. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read base. Use the output convention below.
Subtract discount from invoiceValue only when discountAllowed, then add freight only when freightIncluded.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| invoiceValue | Invoice Value | Required. Finite number; minimum 0. |
| discount | Discount | Required. Finite number; minimum 0. |
| freight | Freight | Required. Finite number; minimum 0. |
| discountAllowed | Discount Allowed | Required. Boolean. |
| freightIncluded | Freight Included | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| base | Numeric base or source quantity interpreted under the specific calculation above. | Required. Finite number. |
{
"input": {
"invoiceValue": 100,
"discount": 10,
"freight": 20,
"discountAllowed": true,
"freightIncluded": true
},
"output": {
"base": 110
}
} Limitations and assumptions
- Discount is bounded by invoice value; the flags express supplied assumptions rather than legally approved customs treatment.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Verify current jurisdictional treatment and transaction facts with a qualified tax or customs professional.
References
Similar or alternative tools
- Freight Cost Tax Base Gap
Add goodsValue and whichever of freightCost and insuranceCost their flags include.
- Import Tariff Basis Margin
Subtract excludedValue from importValue for adValoremBase.