{"uid":"cap_B_esG-IBCcv-TcwUk0wJv","slug":"gross-margin-sequential-input-change-attribution-calculator-d1dfb6b1","name":"Gross Margin Sequential Input-Change Attribution Calculator","description":"Gross margin - Sequential input-change attribution: Change each input from baseline to final in declared field order, reporting each incremental effect; order dependent. Metric: Gross 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 sequential input-change attribution report.","url":"https://market.datapackvibe.com/x402/assistant-finance-gross-margin-waterfall?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"object","default":{"revenue":11000,"gross_profit":2200},"required":["gross_profit","revenue"],"properties":{"revenue":{"type":"number","default":10000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period","exclusiveMinimum":0},"gross_profit":{"type":"number","default":2000,"maximum":1000000000000,"minimum":-1000000000000,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"before":{"type":"object","default":{"revenue":10000,"gross_profit":2000},"required":["gross_profit","revenue"],"properties":{"revenue":{"type":"number","default":10000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period","exclusiveMinimum":0},"gross_profit":{"type":"number","default":2000,"maximum":1000000000000,"minimum":-1000000000000,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false}}},"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_VBbEkuRkiP09PpJKqgi2Z","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":"Computes a sequential (waterfall) attribution of gross margin changes by stepping through each input (revenue, gross profit) from baseline to final values in declared field order, isolating the incremental effect of each change.","exampleAgentPrompt":"Run a sequential gross margin attribution report comparing baseline revenue of $10,000 and gross profit of $2,000 against final revenue of $11,000 and gross profit of $2,200 — I want to see how each input change contributed step by step to the overall margin shift.","exampleUseCases":[{"title":"Quarterly gross margin bridge report","prompt":"Compare our Q2 baseline (revenue $5,000,000, gross profit $1,200,000) to Q3 final (revenue $5,800,000, gross profit $1,350,000) and show me a sequential breakdown of what drove the gross margin change — which input moved the needle first and by how much?"},{"title":"Post-pricing-change margin impact analysis","prompt":"After our price increase, revenue went from $200,000 to $230,000 and gross profit went from $60,000 to $80,000. Do a step-by-step attribution of the gross margin improvement so I can report which factor — revenue or gross profit — contributed more and in what order."},{"title":"Budget-vs-actual gross margin variance","prompt":"Our budget had revenue of $750,000 and gross profit of $187,500, but actuals came in at revenue $710,000 and gross profit of $184,600. Can you run a sequential gross margin waterfall to show how each input deviation contributed to the overall margin variance?"}],"resultDescription":"A JSON report containing the formula used, units, and a step-by-step sequential attribution of gross margin changes — each input (revenue, then gross profit in declared field order) is changed from its baseline to final value one at a time, with the incremental gross margin effect of each step reported along with overall limitations of the order-dependent analysis.","failureModes":["Missing required fields (revenue or gross_profit in before/after objects) returns validation error","Revenue values of zero or negative rejected due to exclusiveMinimum constraint","Gross profit values exceeding ±$1,000,000,000,000 or revenue exceeding $1,000,000,000,000 rejected","Payment of 0.01 USDC not completed or x402 auth missing returns 402 Payment Required","Malformed JSON body returns 400 error"],"whenToPreferThis":"Choose this endpoint when you need an order-dependent, sequential (waterfall/bridge) decomposition of gross margin changes between two periods — specifically isolating the incremental effect of changing revenue first, then gross profit, in declared field order. Prefer this over a parallel or simultaneous attribution when the sequential pathway of change matters for reporting or presentation, such as board-level bridge charts or variance memos. It works exclusively on user-supplied figures and does not require live market data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T02:00:56.771Z","isFirstParty":false,"canonicalSlug":"gross-margin-sequential-input-change-attribution-calculator-d1dfb6b1"}