{"uid":"cap_ZYYSr02NZO2sDCn-Y47Yn","slug":"gross-profit-sequential-input-change-attribution-calculator-aff76f55","name":"Gross Profit Sequential Input-Change Attribution Calculator","description":"Gross profit - Sequential input-change attribution: Change each input from baseline to final in declared field order, reporting each incremental effect; order dependent. Metric: Gross profit. 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-profit-waterfall?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"after":{"type":"object","default":{"revenue":11000,"cost_of_sales":6600.000000000001},"required":["revenue","cost_of_sales"],"properties":{"revenue":{"type":"number","default":10000,"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"}},"additionalProperties":false},"before":{"type":"object","default":{"revenue":10000,"cost_of_sales":6000},"required":["revenue","cost_of_sales"],"properties":{"revenue":{"type":"number","default":10000,"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"}},"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_G3tIxYPEPoPHykJiQLFey","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":"Decomposes the change in gross profit between two periods by sequentially swapping each input (revenue, cost of sales) from baseline to final values, quantifying each input's incremental contribution in declaration order.","exampleAgentPrompt":"My baseline period had revenue of $10,000 and cost of sales of $6,000, and the final period had revenue of $11,000 and cost of sales of $6,600 — can you do a sequential input-change attribution on my gross profit to show how much each input contributed to the change?","exampleUseCases":[{"title":"Quarterly gross profit variance explanation","prompt":"Our Q1 gross profit was based on revenue of $5,200,000 and cost of sales of $3,100,000, and Q2 came in at revenue of $5,800,000 and cost of sales of $3,400,000 — run a sequential attribution analysis so I can see how much of the gross profit change came from the revenue shift versus the cost of sales shift."},{"title":"Retail margin change breakdown","prompt":"Before the price increase, revenue was $250,000 and cost of sales was $150,000; after, revenue is $275,000 and cost of sales stayed at $150,000 — show me a sequential waterfall breakdown of how each input change drove the gross profit movement."},{"title":"Year-over-year gross profit bridge for board deck","prompt":"Last year we had revenue of $2,000,000 and cost of sales of $1,200,000; this year revenue is $1,850,000 and cost of sales is $1,100,000 — I need a sequential input-change attribution on gross profit so I can explain the year-over-year bridge to the board."}],"resultDescription":"Returns a JSON object containing: the gross profit formula, the declared field order used for sequential attribution, an ordered list of attribution steps each showing which input was changed and its incremental effect on gross profit, the units of measurement, and a limitations note about order-dependency of results.","failureModes":["Missing required fields (revenue or cost_of_sales in before/after objects) returns a validation error","Values exceeding ±1,000,000,000,000 or cost_of_sales below 0 are rejected","Malformed JSON body returns a parse error","Payment of 0.01 USDC not provided or rejected results in 402 Payment Required","Identical before and after values return zero attribution for all steps"],"whenToPreferThis":"Choose this endpoint when you need to understand which specific inputs (revenue vs. cost of sales) drove a change in gross profit between two periods, and you want results expressed as a sequential waterfall where each input is changed one at a time in field-declaration order. It is ideal for building bridge/waterfall charts, preparing variance commentary, or board-level explanations. Prefer it over a simple delta calculation when stakeholders need to see the isolated contribution of each driver. Note that results are order-dependent by design.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-01T00:41:55.851Z","isFirstParty":false,"canonicalSlug":"gross-profit-sequential-input-change-attribution-calculator-aff76f55"}