{"uid":"cap_MZLxSIQgoireTGFUSMF9a","slug":"net-profit-weighted-mean-calculator-afb57668","name":"Net Profit Weighted Mean Calculator","description":"Net profit from supplied costs - Weighted result mean: Calculate a mean of up to 200 results using supplied nonnegative weights; not a pooled accounting ratio. Metric: Net profit from supplied costs. 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-profit-weighted-mean?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["revenue","cost_of_sales","operating_expenses","interest_expense","tax_expense"],"properties":{"revenue":{"type":"number","default":10000,"maximum":1000000000000,"minimum":-1000000000000,"description":"Amount in a consistent supplied currency and reporting period"},"tax_expense":{"type":"number","default":300,"maximum":1000000000000,"minimum":-1000000000000,"description":"Amount in a consistent supplied currency and reporting period"},"cost_of_sales":{"type":"number","default":6000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"},"interest_expense":{"type":"number","default":200,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"},"operating_expenses":{"type":"number","default":2000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"revenue":10000,"tax_expense":300,"cost_of_sales":6000,"interest_expense":200,"operating_expenses":2000},{"revenue":11000,"tax_expense":330,"cost_of_sales":6600.000000000001,"interest_expense":220.00000000000003,"operating_expenses":2200},{"revenue":10000,"tax_expense":300,"cost_of_sales":6000,"interest_expense":200,"operating_expenses":2000},{"revenue":11000,"tax_expense":330,"cost_of_sales":6600.000000000001,"interest_expense":220.00000000000003,"operating_expenses":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_pFcrjWSaPop3_sSgSSEB8","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 mean of net profit across up to 200 supplied financial data rows using user-provided nonnegative weights.","exampleAgentPrompt":"Calculate the weighted mean net profit for these two periods: Period 1 had revenue $10,000, cost of sales $6,000, operating expenses $2,000, interest expense $200, and tax expense $300; Period 2 had revenue $11,000, cost of sales $6,600, operating expenses $2,200, interest expense $220, and tax expense $330 — weight Period 1 as 1 and Period 2 as 2.","exampleUseCases":[{"title":"Quarterly profit trend weighting","prompt":"I have four quarters of financials — Q1: revenue $500k, COGS $300k, opex $80k, interest $10k, tax $22k; Q2: revenue $520k, COGS $310k, opex $82k, interest $10k, tax $23k; Q3: revenue $490k, COGS $295k, opex $79k, interest $9k, tax $21k; Q4: revenue $600k, COGS $350k, opex $90k, interest $12k, tax $28k. Weight them 1, 1, 1, 3 to emphasize Q4. Give me the weighted mean net profit."},{"title":"Multi-division profitability summary","prompt":"I need a weighted average net profit across our three divisions: Division A had revenue $2M, COGS $1.2M, opex $300k, interest $50k, tax $90k; Division B had revenue $800k, COGS $500k, opex $120k, interest $20k, tax $32k; Division C had revenue $3.5M, COGS $2M, opex $500k, interest $80k, tax $150k. Weight them by headcount: 40, 15, 60."},{"title":"Recency-weighted profit benchmark","prompt":"Compare net profit across two years with more recent data weighted higher: Year 1 had revenue $1.5M, COGS $900k, opex $250k, interest $30k, tax $65k and Year 2 had revenue $1.8M, COGS $1.05M, opex $280k, interest $35k, tax $80k. Use weights of 1 for Year 1 and 3 for Year 2 to get the weighted mean."}],"resultDescription":"A JSON object containing the weighted mean net profit value computed from the supplied rows and weights, along with the formula used, units, and stated limitations of the calculation. Does not include live data, financial advice, or trade execution.","failureModes":["Mismatched array lengths between rows and weights returns an error","Fewer than 2 rows or weights provided causes a validation failure","Negative weight values rejected since weights must be nonnegative","Revenue or expense values exceeding ±1,000,000,000,000 are out of range","Cost of sales, operating expenses, or interest expense below 0 are rejected","All-zero weights array may produce division-by-zero or undefined result"],"whenToPreferThis":"Choose this endpoint when you need a weighted mean of net profit across multiple supplied data points — such as periods, divisions, or scenarios — and want the result expressed with formula transparency and unit context. Prefer it over simple averaging when some rows should carry more influence than others (e.g. recency weighting, revenue-size weighting). This is a computation-only tool: use it when you already have the raw financial figures and need a defensible aggregate metric, not for fetching live financials or producing investment advice.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:38.382Z","isFirstParty":false,"canonicalSlug":"net-profit-weighted-mean-calculator-afb57668"}