Skip to content

Main content

Produce Grade Premium Price Base Tool

Calculate produce grade premium price base from explicit caller-supplied inputs.

Loading tool…

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

  1. Enter basePrice, premium, premiumIsFraction, acceptedQuantity. 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 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 fieldMeaning and unitsAccepted input
basePriceBase PriceRequired. Finite number; minimum 0.
premiumNonnegative absolute currency per unit or fractional price uplift according to premiumIsFraction.Required. Finite number; minimum 0.
premiumIsFractionPremium Is Fraction Unit: 1.Required. Boolean.
acceptedQuantityAccepted QuantityRequired. Finite number; minimum 0.
Output fieldInterpretationReturned shape
unitPriceUnit PriceRequired. Finite number.
paymentPaymentRequired. Finite number.
json
{
  "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

  1. Calculation and input contract: agribusiness/produce-grade-premium-price-base — tool.io

Similar or alternative tools