Description
Return basePrice*quantity/total and currentPrice*quantity/total.
Agricultural economic summaries distinguish physical quantities, per-area yields, prices, covariance and index weights. One revenue or weighted-price contribution is not a complete index, profit account or estimated demand response. Nominal and imputed values require a consistent currency, quantity and period basis.
Return basePrice*quantity/total and currentPrice*quantity/total.
When to use this tool
Use Producer Price Index Single Weight when checking the stated supplied value, index-weight or economic-response contribution.
How to use the tool and how it works
- Enter basePrice, currentPrice, baseQuantity, totalBaseValue. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read baseWeight, weightedPriceRelative. Use the output convention below.
Require basePrice>0, currentPrice/baseQuantity>=0 and positive totalBaseValue containing the component's base value. Return basePrice*quantity/total and currentPrice*quantity/total.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| basePrice | Base Price | Required. Finite number; strictly above 0. |
| currentPrice | Current Price | Required. Finite number; minimum 0. |
| baseQuantity | Base Quantity | Required. Finite number; minimum 0. |
| totalBaseValue | Total Base Value | Required. Finite number; strictly above 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| baseWeight | Base Weight | Required. Finite number. |
| weightedPriceRelative | One contribution currentPrice*baseQuantity/totalBaseValue; not the full index or automatically a percentage. | Required. Finite number. |
{
"input": {
"basePrice": 10,
"currentPrice": 12,
"baseQuantity": 5,
"totalBaseValue": 100
},
"output": {
"baseWeight": 0.5,
"weightedPriceRelative": 0.6
}
} Limitations and assumptions
- The second output is one weighted price-relative contribution, not the entire index or a percentage index automatically scaled to 100.
- 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
Use verified farm/market data and a complete appropriate accounting or statistical model for economic estimates and decisions.
References
Similar or alternative tools
- Agricultural Policy Price Year Index Factor
Return target/source factor and nominal*factor, keeping a signed nominal value.
- Crop Yield Price Weight Gap
Return sum(yield*area*price) and subtract supplied referenceRevenue.