{
  "title": "Find repeated purchase records before reporting revenue",
  "synthetic": true,
  "inputs": {
    "rows": 120,
    "unique": 100
  },
  "outputs": [
    {
      "label": "Excess rows",
      "actual": 20,
      "expected": 20,
      "passed": true
    },
    {
      "label": "Excess row share %",
      "actual": 16.666666666666668,
      "expected": 16.666666666666668,
      "passed": true
    }
  ],
  "constraints": [
    "v.unique<=v.rows"
  ],
  "formulas": [
    {
      "label": "Excess rows",
      "javascript": "v.rows-v.unique"
    },
    {
      "label": "Excess row share %",
      "javascript": "100*(v.rows-v.unique)/v.rows"
    }
  ],
  "limits": "A stable, correctly scoped transaction identifier is required. This calculator does not inspect IDs, establish which rows are erroneous, or prove that a vendor already deduplicates them."
}
