{"uid":"cap_0oVZCmXMbHkYHkktLtlob","slug":"margin-of-safety-rolling-mean-report-8840c164","name":"Margin of Safety Rolling Mean Report","description":"Margin of safety - Rolling mean report: Calculate trailing full-window means over ordered observations, preserving invalid-row gaps. Metric: Margin of safety. 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 rolling mean report report.","url":"https://market.datapackvibe.com/x402/assistant-finance-margin-safety-rolling?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["actual_sales","break_even_sales"],"properties":{"actual_sales":{"type":"number","default":10000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period","exclusiveMinimum":0},"break_even_sales":{"type":"number","default":7000,"maximum":1000000000000,"minimum":0,"description":"Amount in a consistent supplied currency and reporting period"}},"additionalProperties":false},"default":[{"actual_sales":10000,"break_even_sales":7000},{"actual_sales":11000,"break_even_sales":7700.000000000001},{"actual_sales":10000,"break_even_sales":7000},{"actual_sales":11000,"break_even_sales":7700.000000000001}],"maxItems":200,"minItems":2},"window":{"type":"integer","default":2,"maximum":200,"minimum":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_6SJHqKt8cA4o4jmWKOsfh","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 trailing full-window rolling means over a series of margin-of-safety observations, preserving gaps for invalid rows, and returns results with formula, units, and limitations.","exampleAgentPrompt":"Can you calculate the rolling mean margin of safety over a 3-period window for these four quarters of sales data: Q1 actual $10,000 / break-even $7,000, Q2 actual $11,000 / break-even $7,700, Q3 actual $10,500 / break-even $7,350, Q4 actual $12,000 / break-even $8,400?","exampleUseCases":[{"title":"Quarterly safety cushion trend smoothing","prompt":"I have 6 quarters of actual and break-even sales figures and I want to see a 3-period rolling mean of our margin of safety — can you run that calculation and tell me what the formula and units are? Actual sales: $10k, $11k, $10.5k, $12k, $11.5k, $13k and break-even: $7k, $7.7k, $7.35k, $8.4k, $8.05k, $9.1k."},{"title":"Annual retail break-even buffer analysis","prompt":"We track monthly actual vs break-even sales for our retail chain and need a rolling 4-month mean of our margin of safety to smooth out seasonal noise — here are 8 months of data: actuals [$50k, $55k, $48k, $60k, $52k, $58k, $63k, $57k] and break-evens [$35k, $38.5k, $33.6k, $42k, $36.4k, $40.6k, $44.1k, $39.9k]."},{"title":"Manufacturing cost cushion rolling average","prompt":"Can you compute a 2-period rolling mean of our margin of safety using these 5 production periods? Actual revenues were $200k, $215k, $195k, $230k, $210k and break-even points were $140k, $150.5k, $136.5k, $161k, $147k — I need the formula and any limitations included in the output."}],"resultDescription":"A JSON object containing the rolling mean margin-of-safety values for each valid full window across the input rows, along with the formula used, measurement units, and stated limitations of the calculation. Rows that cannot form a complete window or are flagged invalid are preserved as gaps in the output.","failureModes":["Fewer than 2 rows provided — minimum input size not met","Window size exceeds number of rows — no valid windows can be formed","actual_sales is zero or negative — exclusiveMinimum constraint violation","Sales figures use inconsistent currencies or periods — results will be mathematically valid but financially misleading","Window larger than max allowed (200) — schema validation error"],"whenToPreferThis":"Choose this endpoint when you need a statistical rolling-mean smoothing of margin-of-safety figures across an ordered series of periods, with explicit formula documentation and gap-preservation for invalid rows. Prefer it over a simple single-period calculator when trend analysis across multiple windows is needed, and over a live-feed service when working with supplied historical or forecast figures rather than real-time data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:29.976Z","isFirstParty":false,"canonicalSlug":"margin-of-safety-rolling-mean-report-8840c164"}