Description
Return positive-part deposit+credit-charges as refund and the opposite positive part as balanceDue.
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 positive-part deposit+credit-charges as refund and the opposite positive part as balanceDue.
When to use this tool
Use Farm Machinery Deposit Release Term when checking the stated caller-defined price, fee, return or settlement convention.
How to use the tool and how it works
- Enter deposit, hireCharge, damageCharge, otherCredit. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read refund, balanceDue. Use the output convention below.
Require nonnegative deposit, hire/damage charges and other credit. Return positive-part deposit+credit-charges as refund and the opposite positive part as balanceDue.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| deposit | Deposit | Required. Finite number; minimum 0. |
| hireCharge | Hire Charge | Required. Finite number; minimum 0. |
| damageCharge | Damage Charge | Required. Finite number; minimum 0. |
| otherCredit | Other Credit | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| refund | Refund | Required. Finite number. |
| balanceDue | Balance Due | Required. Finite number. |
{
"input": {
"deposit": 500,
"hireCharge": 200,
"damageCharge": 50,
"otherCredit": 0
},
"output": {
"refund": 250,
"balanceDue": 0
}
} Limitations and assumptions
- Only one side can be positive; supplied charges are not verified liabilities or lawful deposit deductions.
- 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
- Farm Shop Consignment Net Settlement
Commission applies to gross-minus-refunds; sellerDue=netSales*(1-fraction)-fees.
- Cooperative Member Patronage Share Term
Allocate surplus by memberTrade/total; split allocated amount into retained and cash shares.