Description
Band distance=max(0,min(distance,upper)-lower); charge=bandDistance*quantity*rate.
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.
Band distance=max(0,min(distance,upper)-lower); charge=bandDistance*quantity*rate.
When to use this tool
Use Farm Contract Haulage Distance Band when checking the stated caller-defined price, fee, return or settlement convention.
How to use the tool and how it works
- Enter distance, lowerBound, upperBound, quantity, rate. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read bandDistance, charge. Use the output convention below.
Require nonnegative distance, ordered nonnegative band bounds, quantity and rate. Band distance=max(0,min(distance,upper)-lower); charge=bandDistance*quantity*rate.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| distance | Distance | Required. Finite number; minimum 0. |
| lowerBound | Lower Bound | Required. Finite number; minimum 0. |
| upperBound | Upper Bound | Required. Finite number. |
| quantity | Quantity | Required. Finite number; minimum 0. |
| rate | Currency per quantity unit per distance unit within this one incremental band. | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| bandDistance | Band Distance | Required. Finite number. |
| charge | Charge | Required. Finite number. |
{
"input": {
"distance": 150,
"lowerBound": 100,
"upperBound": 200,
"quantity": 10,
"rate": 2
},
"output": {
"bandDistance": 50,
"charge": 1000
}
} Limitations and assumptions
- This is one incremental distance band, not a flat rate on total distance or a complete haulage tariff.
- 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
- Agribusiness Transport Backhaul Credit Term
Credit=min(outboundCharge,cap,quantity*unitCredit); net charge=outbound-credit.
- Machinery Rental Minimum Charge
Apply an explicitly supplied minimum charge to a machinery rental duration times hourly rate.