Description
Accepted quantity gets the signed per-unit grade premium; base value still applies to all supplied quantity.
Agribusiness records use explicit price bases, commissions, returns, minimum charges, credits and tax assumptions. A supplied arithmetic rule can reconcile a scenario while actual acceptance, contractual rights and legal liability require the governing agreement. Signed residual balances can be useful evidence of overpayment or inconsistent inputs.
Accepted quantity gets the signed per-unit grade premium; base value still applies to all supplied quantity.
When to use this tool
Use Produce Grading One Quality Premium when checking the stated caller-defined price, fee, return or settlement convention.
How to use the tool and how it works
- Enter quantity, basePrice, gradePremium, acceptedFraction. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read acceptedQuantity, premiumValue, totalValue. Use the output convention below.
Require nonnegative quantity/base price and accepted fraction in [0,1]. Accepted quantity gets the signed per-unit grade premium; base value still applies to all supplied quantity.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| quantity | Quantity | Required. Finite number; minimum 0. |
| basePrice | Base Price | Required. Finite number; minimum 0. |
| gradePremium | Grade Premium | Required. Finite number. |
| acceptedFraction | Share receiving the signed premium; base price still applies to all quantity. | Required. Finite number; minimum 0; maximum 1. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| acceptedQuantity | Accepted Quantity | Required. Finite number. |
| premiumValue | Premium Value | Required. Finite number. |
| totalValue | Total Value | Required. Finite number. |
{
"input": {
"quantity": 100,
"basePrice": 2,
"gradePremium": 0.5,
"acceptedFraction": 0.8
},
"output": {
"acceptedQuantity": 80,
"premiumValue": 40,
"totalValue": 240
}
} Limitations and assumptions
- The premium may be negative; acceptedFraction selects premium-bearing quantity, not the fraction receiving any base payment.
- 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
Inspect original transaction records and applicable contracts/tax rules with the responsible financial/legal professionals for actual settlement or enforcement.
References
Similar or alternative tools
- Produce Grade Premium Price Base
Add either basePrice*premium or the absolute premium to basePrice according to premiumIsFraction, then multiply by acceptedQuantity.
- Livestock Feed Contract Basis Gap
Observed basis=local-reference price, basis gap=observed-contractedBasis and valueGap=gap*quantity.