Skip to content

Main content

Produce Grading One Quality Premium Tool

Apply an explicit per-unit grade premium, allowing a negative supplied premium to represent a discount.

Loading tool…

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

  1. Enter quantity, basePrice, gradePremium, acceptedFraction. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. 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 fieldMeaning and unitsAccepted input
quantityQuantityRequired. Finite number; minimum 0.
basePriceBase PriceRequired. Finite number; minimum 0.
gradePremiumGrade PremiumRequired. Finite number.
acceptedFractionShare receiving the signed premium; base price still applies to all quantity.Required. Finite number; minimum 0; maximum 1.
Output fieldInterpretationReturned shape
acceptedQuantityAccepted QuantityRequired. Finite number.
premiumValuePremium ValueRequired. Finite number.
totalValueTotal ValueRequired. Finite number.
json
{
  "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

  1. Calculation and input contract: agribusiness/produce-grading-one-quality-premium — tool.io

Similar or alternative tools