{"uid":"cap_ZHUpIcCL3gSOdEOt15415","slug":"unit-contribution-weighted-result-mean-calculator-ed2374a8","name":"Unit Contribution Weighted Result Mean Calculator","description":"Unit contribution - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: Unit contribution. Supplied figures only; returns JSON with formula, units and limitations. One of 50 calculators with 20 analysis modes. No live feed, financial advice or trade execution. 0.01 USDC includes one bounded weighted result mean report.","url":"https://market.datapackvibe.com/x402/assistant-finance-unit-contribution-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["unit_price","variable_cost_per_unit"],"properties":{"unit_price":{"type":"number","default":20,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"},"variable_cost_per_unit":{"type":"number","default":12,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"unit_price":20,"variable_cost_per_unit":12},{"unit_price":22,"variable_cost_per_unit":13.200000000000001},{"unit_price":20,"variable_cost_per_unit":12},{"unit_price":22,"variable_cost_per_unit":13.200000000000001}],"maxItems":200,"minItems":2},"weights":{"type":"array","items":{"type":"number","default":1,"maximum":1000000000000,"minimum":0},"default":[1,2,1,2],"maxItems":200,"minItems":2}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_o5MQ-uUujEQ6-DfO4o05H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates a nonnegative-weight-based weighted mean of unit contribution (unit price minus variable cost per unit) across up to 200 product rows, returning a structured JSON report with formula, units, and limitations.","exampleAgentPrompt":"Calculate the weighted mean unit contribution for my four products: two products with unit price $20 and variable cost $12 each (weights 1 and 1), and two with unit price $22 and variable cost $13.20 each (weights 2 and 2).","exampleUseCases":[{"title":"Product mix contribution margin blending","prompt":"I have three SKUs: SKU-A priced at $50 with variable cost $30 (weight 3), SKU-B priced at $75 with variable cost $40 (weight 5), and SKU-C priced at $40 with variable cost $28 (weight 2). Can you give me the weighted mean unit contribution across that mix?"},{"title":"Volume-weighted margin for seasonal line","prompt":"We sell two seasonal items — a premium item at $120 unit price and $72 variable cost sold 800 units, and a standard item at $60 unit price and $39 variable cost sold 2000 units. Calculate the weighted mean unit contribution using those volumes as weights."},{"title":"Comparing blended contribution before and after price change","prompt":"I need the weighted mean unit contribution for our current pricing: Product 1 is $18 price, $11 variable cost, weight 4; Product 2 is $25 price, $14 variable cost, weight 6. Use those exact figures and give me the formula too."}],"resultDescription":"A JSON object containing the calculated weighted mean unit contribution value, the formula used, the units of measurement, and any applicable limitations or caveats about the calculation (e.g. no pooled accounting, supplied figures only, not financial advice).","failureModes":["Mismatched array lengths between rows and weights arrays returns an error","Fewer than 2 rows or weights supplied returns a validation error","Negative weight values are rejected (nonnegative constraint)","Values exceeding 1,000,000,000,000 per field are rejected","Missing required fields unit_price or variable_cost_per_unit returns a schema validation error","Payment not included or insufficient USDC results in a 402 Payment Required response"],"whenToPreferThis":"Choose this endpoint when you need a statistically weighted mean of unit contribution (unit price minus variable cost) across multiple products or time periods, especially when volumes or importance weights differ across rows. It is not a pooled accounting ratio, so prefer it for quick blended-margin estimates using supplied figures rather than full P&L reconciliation. Use it over simple averages when different products have different sales weights or strategic importance.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:29.631Z","isFirstParty":false,"canonicalSlug":"unit-contribution-weighted-result-mean-calculator-ed2374a8"}