{"uid":"cap_kyTRum-mMFGjUXQ19Cvt0","slug":"net-margin-weighted-result-mean-calculator-ff1484e1","name":"Net Margin Weighted Result Mean Calculator","description":"Net margin - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: Net margin. 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-net-margin-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["net_profit","revenue"],"properties":{"revenue":{"type":"number","default":10000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period","exclusiveMinimum":0},"net_profit":{"type":"number","default":2000,"maximum":1000000000000,"minimum":-1000000000000,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"revenue":10000,"net_profit":2000},{"revenue":11000,"net_profit":2200},{"revenue":10000,"net_profit":2000},{"revenue":11000,"net_profit":2200}],"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_9tySG9_GVzY2Egh-GMPey","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 weighted arithmetic mean of net margin across up to 200 supplied data rows using user-provided nonnegative weights.","exampleAgentPrompt":"Calculate the weighted mean net margin for these four business units: Unit A had $10,000 revenue and $2,000 net profit, Unit B had $11,000 revenue and $2,200 net profit, Unit C had $10,000 revenue and $1,500 net profit, Unit D had $11,000 revenue and $3,000 net profit — weight them as 1, 2, 1, and 3 respectively.","exampleUseCases":[{"title":"Portfolio blended profitability summary","prompt":"I have five companies in my portfolio with different revenue and net profit figures. Weight them by market cap: $500M, $1.2B, $800M, $300M, $950M. Revenue figures are $40M, $120M, $60M, $15M, $90M and net profits are $4M, $18M, $5M, $1M, $12M. What's the weighted mean net margin across the portfolio?"},{"title":"Segment-weighted margin for conglomerate","prompt":"Our conglomerate has three divisions. Division 1: revenue $5M, net profit $600K, weight 2. Division 2: revenue $12M, net profit $900K, weight 5. Division 3: revenue $3M, net profit $450K, weight 1. Can you compute the weighted average net margin and give me the formula used?"},{"title":"Year-over-year emphasis on recent periods","prompt":"I want to average the net margins for our company over the past four years, but weight recent years more heavily — use weights 1, 1, 2, 4. Revenue was $8M, $9M, $10M, $11M and net profit was $800K, $720K, $1.1M, $1.43M across those years. What's the weighted mean net margin?"}],"resultDescription":"Returns a JSON object containing the weighted mean net margin value, the formula applied, the units used, and a limitations note clarifying this is a weighted statistical mean of supplied figures (not a pooled accounting ratio), along with any relevant caveats about the calculation scope.","failureModes":["Mismatched array lengths between rows and weights returns a validation error","Weights array containing negative values is rejected","Revenue values of zero or below are rejected (exclusiveMinimum enforced)","Fewer than 2 rows provided returns a schema validation error","More than 200 rows provided exceeds maxItems limit","Missing required net_profit or revenue fields in any row causes failure","Payment of 0.01 USDC not completed results in HTTP 402 error"],"whenToPreferThis":"Choose this endpoint when you need a statistically weighted average of net margin across multiple discrete observations — such as portfolio companies, business units, or time periods — where each observation should contribute differently based on user-supplied importance weights. Prefer this over a simple mean when observations have unequal significance. This is not a pooled accounting ratio calculator and should not be used when you need a single unified net margin from combined financials.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T00:56:06.944Z","isFirstParty":false,"canonicalSlug":"net-margin-weighted-result-mean-calculator-ff1484e1"}