Skip to content

Main content

Farm Market Unsold Return Credit Tool

Calculate farm market unsold return credit from explicit caller-supplied inputs.

Loading tool…

Description

Return unaccounted units, delivered*unitPrice, returned*returnCredit and invoice-credit.

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.

Return unaccounted units, delivered*unitPrice, returned*returnCredit and invoice-credit.

When to use this tool

Use Farm Market Unsold Return Credit when checking the stated caller-defined price, fee, return or settlement convention.

How to use the tool and how it works

  1. Enter delivered, sold, returned, unitPrice, returnCredit. 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 unaccounted, invoice, credit, net. Use the output convention below.

Require whole 0<=sold<=delivered and returned<=delivered-sold, with nonnegative prices. Return unaccounted units, delivered*unitPrice, returned*returnCredit and invoice-credit.1

Input fieldMeaning and unitsAccepted input
deliveredDeliveredRequired. Safe integer; minimum 0.
soldSoldRequired. Safe integer; minimum 0.
returnedReturnedRequired. Safe integer; minimum 0.
unitPriceUnit PriceRequired. Finite number; minimum 0.
returnCreditReturn CreditRequired. Finite number; minimum 0.
Output fieldInterpretationReturned shape
unaccountedUnaccountedRequired. Safe integer.
invoiceAll delivered units*unitPrice, not just sold units.Required. Finite number.
creditCreditRequired. Finite number.
netNetRequired. Finite number.
json
{
  "input": {
    "delivered": 100,
    "sold": 70,
    "returned": 20,
    "unitPrice": 2,
    "returnCredit": 1.5
  },
  "output": {
    "unaccounted": 10,
    "invoice": 200,
    "credit": 30,
    "net": 170
  }
}

Limitations and assumptions

  • Unsold/unreturned units stay invoiced under this bookkeeping convention; actual sales and contractual return rights are not verified.
  • 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/farm-market-unsold-return-credit — tool.io

Similar or alternative tools