Description
Add either basePrice*premium or the absolute premium to basePrice according to premiumIsFraction, then multiply by acceptedQuantity.
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.
Add either basePrice*premium or the absolute premium to basePrice according to premiumIsFraction, then multiply by acceptedQuantity.
When to use this tool
Use Produce Grade Premium Price Base when checking the stated caller-defined price, fee, return or settlement convention.
How to use the tool and how it works
- Enter basePrice, premium, premiumIsFraction, acceptedQuantity. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read unitPrice, payment. Use the output convention below.
Require nonnegative basePrice, premium and acceptedQuantity. Add either basePrice*premium or the absolute premium to basePrice according to premiumIsFraction, then multiply by acceptedQuantity.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| basePrice | Base Price | Required. Finite number; minimum 0. |
| premium | Nonnegative absolute currency per unit or fractional price uplift according to premiumIsFraction. | Required. Finite number; minimum 0. |
| premiumIsFraction | Premium Is Fraction Unit: 1. | Required. Boolean. |
| acceptedQuantity | Accepted Quantity | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| unitPrice | Unit Price | Required. Finite number. |
| payment | Payment | Required. Finite number. |
{
"input": {
"basePrice": 10,
"premium": 0.2,
"premiumIsFraction": true,
"acceptedQuantity": 100
},
"output": {
"unitPrice": 12,
"payment": 1200
}
} Limitations and assumptions
- A fractional premium is not capped at one; actual grading, contract terms and taxes are not selected.
- 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 Grading One Quality Premium
Accepted quantity gets the signed per-unit grade premium; base value still applies to all supplied quantity.
- Grain Delivery Test Weight Price Term
Adjust unit price by (measured-reference)*pointPrice and multiply by quantity.