AI Blocks agents

E-commerce

Build a daily contribution margin sheet with returns accrued

Paste daily sales, costs, ad spend and your return rate. Get a daily sheet design with formulas, a month-end returns check and an owner view with the profit gap.

What you fill in

  • Daily net sales for the last 30 days
  • Product cost per order or cost of goods per day
  • Variable costs per order (shipping, pick and pack, payment fees)
  • Daily ad spend by channel
  • Return rate for the last 90 days
  • Monthly fixed costs and profit goal

The full prompt

About my store

  • Store and products: [e.g. a dog accessories brand, average order $48]
  • Market and currency: [e.g. US, USD]
  • Daily net sales for the last 30 days (from the sales report, by day): [PASTE]
  • Product cost: [cost per item tagged in the store, or cost of goods as % of sales]
  • Variable cost per order: shipping [e.g. $7.10], pick and pack [e.g. $2.40], payment fee [e.g. 2.9% + $0.30], packaging [e.g. $0.80]
  • Daily ad spend by channel: [PASTE]
  • Return or refund rate over the last 90 days: [e.g. 8% of net sales]
  • Monthly fixed costs and the profit I want this month: [e.g. $22,000 fixed, $10,000 profit]

Your role

Act as a unit economics analyst who gives a store one daily number the whole team can act on.

Method

  1. Daily contribution margin = net sales minus returns accrual minus product cost minus variable costs minus ad spend. Leave fixed costs out of the daily view: spreading rent across days makes a good media day look like a loss and pushes the team to cut spend for the wrong reason.
  2. Accrue returns on the day of the sale. Returns accrual = that day's net sales x my 90-day return rate. Store reports book refunds on the day they are processed, so a big month's returns land in the next month. If my daily sales figure already has refunds taken off, add processed refunds back first, then apply the accrual, so a return is never counted twice.
  3. Variable costs move with orders. Pay for packers on payroll becomes a per-order cost (for example 400 a day over 100 orders is 4 an order). Payment fees go here, not in overhead.
  4. Month-end check. Compare accrued returns with actual returns for orders from that month once 30 to 45 days have passed. Reset the rate from the last 90 days. Flag a gap above 2 points.
  5. Owner view, separate from the media buyer view. Monthly goal = fixed costs + profit wanted. Daily target = goal / days in the month. Show month-to-date contribution against the pace needed. If I gave no goal, write MISSING: goal.
  6. Metric pyramid. Contribution margin on top; then revenue, spend, MER (revenue / total ad spend) and AOV; then new-customer numbers (new customers, new-customer CAC); channel ROAS at the bottom, for comparing ads inside one platform only.
  7. Watch the sale days. On a sitewide sale, product cost as a share of sales jumps (a 20% sale on an item with 50% cost takes margin to 37.5%). Use real cost per item, never a flat percentage.
  8. Fill the first rows with my last 30 days and say what the numbers show: best and worst day, days below zero and why.

Use my data only. Ask for any cost line I left out. Do not invent a return rate or a goal.

Output format

  1. SHEET COLUMNS with the formula for each: Date | Net sales | Returns accrual | Product cost | Variable cost | Ad spend | Contribution margin | CM % of net sales | Month-to-date CM | Pace vs target.
  2. FIRST 30 ROWS filled from my data.
  3. MONTH-END RETURNS CHECK: accrued, actual, difference, new rate.
  4. OWNER VIEW: month CM, fixed costs, profit, goal, gap, daily pace needed.
  5. METRIC PYRAMID in four lines.
  6. THREE THINGS THE DATA SAYS, one line each.
  7. MISSING.

Check before you answer

  • Fixed costs are not in the daily rows.
  • Returns are counted once, on the sale day.
  • Payment fees and packing pay are in variable cost.
  • Every formula is written out so I can paste it into a sheet.
  • End with: planning numbers only, check with your accountant.

Used by Radek, E-commerce unit economics analyst, Callum, E-commerce reporting and dashboards analyst.