{
  "title": "Show what an IAP-only ROAS leaves out of a hybrid cohort",
  "synthetic": true,
  "inputs": {
    "iap": 3000,
    "ads": 2000,
    "spend": 10000
  },
  "outputs": [
    {
      "label": "Purchase-only ROAS %",
      "actual": 30,
      "expected": 30,
      "passed": true
    },
    {
      "label": "Combined ROAS %",
      "actual": 50,
      "expected": 50,
      "passed": true
    },
    {
      "label": "Ad share of revenue %",
      "actual": 40,
      "expected": 40,
      "passed": true
    }
  ],
  "constraints": [
    "v.iap+v.ads>0"
  ],
  "formulas": [
    {
      "label": "Purchase-only ROAS %",
      "javascript": "100*v.iap/v.spend"
    },
    {
      "label": "Combined ROAS %",
      "javascript": "100*(v.iap+v.ads)/v.spend"
    },
    {
      "label": "Ad share of revenue %",
      "javascript": "100*v.ads/(v.iap+v.ads)"
    }
  ],
  "limits": "Ad-revenue precision, payout timing and cohort allocation are not verified. The combined figure is still revenue divided by spend, not profit, cash recovery or a causal estimate of advertising value."
}
