{
 "format": "stockflow-1",
 "id": "example-regional-launch",
 "name": "Example: launch in three regions",
 "notes": "A subscription service launches in three regions of different size. Every customer-related element is an array over Region (North, South, West): one equation, three values. Marketing is split across the regions; word of mouth grows separately in each. The first 12 months of real customer numbers are included, so you can fit the model to them in Analyse → Fit to data, and the uncertain assumptions are ready for Analyse → Uncertainty. Time unit: months.",
 "sim": {
  "start": 0,
  "stop": 36,
  "dt": 0.25,
  "unit": "months"
 },
 "dims": [
  {
   "name": "Region",
   "elements": [
    "North",
    "South",
    "West"
   ]
  }
 ],
 "elements": [
  {
   "id": "r1",
   "type": "aux",
   "name": "Population",
   "eq": "30000",
   "x": 110,
   "y": 370,
   "units": "people",
   "doc": "People in each region who might use the service.",
   "dims": [
    "Region"
   ],
   "eqs": {
    "North": "40000",
    "South": "25000",
    "West": "15000"
   }
  },
  {
   "id": "r2",
   "type": "stock",
   "name": "Potential_Customers",
   "eq": "Population[Region] - 20",
   "x": 300,
   "y": 260,
   "units": "people",
   "doc": "People in each region who are not customers yet.",
   "nonneg": true,
   "dims": [
    "Region"
   ]
  },
  {
   "id": "r3",
   "type": "stock",
   "name": "Customers",
   "eq": "20",
   "x": 680,
   "y": 260,
   "units": "people",
   "doc": "Paying customers in each region.",
   "nonneg": true,
   "dims": [
    "Region"
   ]
  },
  {
   "id": "r4",
   "type": "flow",
   "name": "Sign_Ups",
   "eq": "Potential_Customers[Region]*(From_Ads[Region] + Word_of_Mouth[Region])*Price_Appeal",
   "from": "r2",
   "to": "r3",
   "units": "people/month",
   "doc": "New customers per month in each region.",
   "biflow": false,
   "dims": [
    "Region"
   ]
  },
  {
   "id": "r5",
   "type": "flow",
   "name": "Cancellations",
   "eq": "Customers[Region]*Churn_Rate",
   "from": "r3",
   "to": null,
   "tx": 980,
   "ty": 260,
   "units": "people/month",
   "doc": "Customers who leave each month.",
   "biflow": false,
   "dims": [
    "Region"
   ]
  },
  {
   "id": "r6",
   "type": "aux",
   "name": "Marketing_Budget",
   "eq": "6000",
   "x": 120,
   "y": 40,
   "units": "€/month",
   "doc": "Total marketing spend per month, split over the regions.",
   "slider": {
    "min": 0,
    "max": 20000,
    "step": 500,
    "kind": "decision"
   }
  },
  {
   "id": "r7",
   "type": "aux",
   "name": "Budget_Share",
   "eq": "0.33",
   "x": 300,
   "y": 40,
   "units": "share",
   "doc": "How much of the budget each region gets (they are scaled so they add up to 100%).",
   "dims": [
    "Region"
   ],
   "eqs": {
    "North": "0.4",
    "South": "0.35",
    "West": "0.25"
   },
   "slider": {
    "min": 0,
    "max": 1,
    "step": 0.05,
    "kind": "decision"
   }
  },
  {
   "id": "r8",
   "type": "aux",
   "name": "Effective_Share",
   "eq": "SAFEDIV(Budget_Share[Region], SUM(Budget_Share[*]))",
   "x": 300,
   "y": 130,
   "units": "fraction",
   "doc": "Each region’s share of the budget, scaled to add up to 100%.",
   "dims": [
    "Region"
   ]
  },
  {
   "id": "r9",
   "type": "aux",
   "name": "Ad_Effect",
   "eq": "0.005",
   "x": 470,
   "y": 40,
   "units": "per €1000",
   "doc": "Share of potential customers signed up per €1,000 of monthly marketing in their region.",
   "slider": {
    "min": 0,
    "max": 0.03,
    "step": 0.0005,
    "kind": "assumption"
   }
  },
  {
   "id": "r10",
   "type": "aux",
   "name": "From_Ads",
   "eq": "Ad_Effect*Effective_Share[Region]*Marketing_Budget/1000",
   "x": 470,
   "y": 140,
   "units": "per month",
   "doc": "Share of potential customers won by marketing each month.",
   "dims": [
    "Region"
   ]
  },
  {
   "id": "r11",
   "type": "aux",
   "name": "Contact_Rate",
   "eq": "6",
   "x": 640,
   "y": 40,
   "units": "contacts/month",
   "doc": "How many people a customer talks to about the service per month.",
   "slider": {
    "min": 0,
    "max": 25,
    "step": 0.5,
    "kind": "assumption"
   }
  },
  {
   "id": "r12",
   "type": "aux",
   "name": "Adoption_Fraction",
   "eq": "0.03",
   "x": 790,
   "y": 40,
   "units": "fraction",
   "doc": "Chance that a conversation leads to a sign-up.",
   "slider": {
    "min": 0,
    "max": 0.1,
    "step": 0.005,
    "kind": "assumption"
   }
  },
  {
   "id": "r13",
   "type": "aux",
   "name": "Word_of_Mouth",
   "eq": "Contact_Rate*Adoption_Fraction*Customers[Region]/Population[Region]",
   "x": 640,
   "y": 140,
   "units": "per month",
   "doc": "Share of potential customers won by recommendations: grows with the customers you already have in that region.",
   "dims": [
    "Region"
   ]
  },
  {
   "id": "r14",
   "type": "aux",
   "name": "Price",
   "eq": "20",
   "x": 960,
   "y": 40,
   "units": "€/month",
   "doc": "Monthly price.",
   "slider": {
    "min": 10,
    "max": 35,
    "step": 0.5,
    "kind": "decision"
   }
  },
  {
   "id": "r15",
   "type": "aux",
   "name": "Reference_Price",
   "eq": "20",
   "x": 1100,
   "y": 40,
   "units": "€/month",
   "doc": "What customers expect to pay.",
   "slider": {
    "min": 10,
    "max": 35,
    "step": 0.5,
    "kind": "assumption"
   }
  },
  {
   "id": "r16",
   "type": "aux",
   "name": "Price_Sensitivity",
   "eq": "1.5",
   "x": 1100,
   "y": 140,
   "units": "ratio",
   "doc": "1.5 means 10% above the reference price costs 15% of sign-ups.",
   "slider": {
    "min": 0,
    "max": 4,
    "step": 0.1,
    "kind": "assumption"
   }
  },
  {
   "id": "r17",
   "type": "aux",
   "name": "Price_Appeal",
   "eq": "MAX(0, 1 - Price_Sensitivity*(Price - Reference_Price)/Reference_Price)",
   "x": 940,
   "y": 150,
   "units": "index",
   "doc": "1 at the reference price, lower when dearer."
  },
  {
   "id": "r18",
   "type": "aux",
   "name": "Churn_Rate",
   "eq": "0.02",
   "x": 980,
   "y": 380,
   "units": "per month",
   "doc": "Share of customers who cancel each month.",
   "slider": {
    "min": 0,
    "max": 0.1,
    "step": 0.005,
    "kind": "assumption"
   }
  },
  {
   "id": "r19",
   "type": "aux",
   "name": "Total_Customers",
   "eq": "SUM(Customers[*])",
   "x": 680,
   "y": 420,
   "units": "people",
   "doc": "Customers across all regions."
  },
  {
   "id": "r20",
   "type": "aux",
   "name": "Service_Cost",
   "eq": "6",
   "x": 420,
   "y": 560,
   "units": "€/customer/month",
   "doc": "Cost of serving one customer per month.",
   "slider": {
    "min": 1,
    "max": 15,
    "step": 0.5,
    "kind": "assumption"
   }
  },
  {
   "id": "r21",
   "type": "aux",
   "name": "Fixed_Costs",
   "eq": "10000",
   "x": 560,
   "y": 560,
   "units": "€/month",
   "doc": "Platform, staff and office.",
   "slider": {
    "min": 0,
    "max": 30000,
    "step": 500,
    "kind": "assumption"
   }
  },
  {
   "id": "r22",
   "type": "aux",
   "name": "Revenue",
   "eq": "Total_Customers*Price",
   "x": 260,
   "y": 470,
   "units": "€/month",
   "doc": "Monthly revenue."
  },
  {
   "id": "r23",
   "type": "aux",
   "name": "Costs",
   "eq": "Marketing_Budget + Total_Customers*Service_Cost + Fixed_Costs",
   "x": 480,
   "y": 470,
   "units": "€/month",
   "doc": "Monthly costs."
  },
  {
   "id": "r24",
   "type": "stock",
   "name": "Cumulative_Profit",
   "eq": "0",
   "x": 900,
   "y": 560,
   "units": "€",
   "doc": "Profit since launch.",
   "nonneg": false
  },
  {
   "id": "r25",
   "type": "flow",
   "name": "Profit",
   "eq": "Revenue - Costs",
   "from": null,
   "to": "r24",
   "fx": 660,
   "fy": 560,
   "units": "€/month",
   "doc": "Monthly profit.",
   "biflow": true
  }
 ],
 "data": [
  {
   "name": "Total_Customers",
   "points": [
    [
     0,
     60
    ],
    [
     1,
     760
    ],
    [
     2,
     1591
    ],
    [
     3,
     2478
    ],
    [
     4,
     3426
    ],
    [
     5,
     4751
    ],
    [
     6,
     5867
    ],
    [
     7,
     7282
    ],
    [
     8,
     8762
    ],
    [
     9,
     10397
    ],
    [
     10,
     12021
    ],
    [
     11,
     13836
    ],
    [
     12,
     16291
    ]
   ]
  }
 ],
 "scenarios": [
  {
   "id": "rg1",
   "name": "Current plan",
   "note": "€6,000 a month, split 40/35/25.",
   "values": {
    "Marketing_Budget": 6000,
    "Budget_Share__North": 0.4,
    "Budget_Share__South": 0.35,
    "Budget_Share__West": 0.25,
    "Price": 20
   }
  },
  {
   "id": "rg2",
   "name": "Even split",
   "note": "Same money, equal shares.",
   "values": {
    "Marketing_Budget": 6000,
    "Budget_Share__North": 0.34,
    "Budget_Share__South": 0.33,
    "Budget_Share__West": 0.33,
    "Price": 20
   }
  },
  {
   "id": "rg3",
   "name": "Focus on North",
   "note": "Most of the money where most people live.",
   "values": {
    "Marketing_Budget": 6000,
    "Budget_Share__North": 0.7,
    "Budget_Share__South": 0.2,
    "Budget_Share__West": 0.1,
    "Price": 20
   }
  },
  {
   "id": "rg4",
   "name": "Double the budget",
   "note": "€12,000 a month.",
   "values": {
    "Marketing_Budget": 12000,
    "Budget_Share__North": 0.4,
    "Budget_Share__South": 0.35,
    "Budget_Share__West": 0.25,
    "Price": 20
   }
  },
  {
   "id": "rg5",
   "name": "Premium price",
   "note": "€25 a month.",
   "values": {
    "Marketing_Budget": 6000,
    "Budget_Share__North": 0.4,
    "Budget_Share__South": 0.35,
    "Budget_Share__West": 0.25,
    "Price": 25
   }
  }
 ],
 "summary": {
  "kpis": [
   {
    "name": "Cumulative_Profit",
    "agg": "final",
    "label": "Profit after 3 years",
    "better": "high",
    "format": "eur"
   },
   {
    "name": "Total_Customers",
    "agg": "final",
    "label": "Customers at the end",
    "better": "high",
    "format": "num"
   },
   {
    "name": "Profit",
    "agg": "lastyear",
    "label": "Profit in year 3",
    "better": "high",
    "format": "eur"
   }
  ]
 },
 "optimise": {
  "goal": {
   "name": "Cumulative_Profit",
   "agg": "final",
   "dir": "max"
  },
  "constraints": []
 },
 "analysis": {
  "fitVary": [
   "Contact_Rate",
   "Ad_Effect"
  ],
  "mc": {
   "n": 300,
   "outputs": [
    {
     "name": "Cumulative_Profit",
     "agg": "final"
    },
    {
     "name": "Total_Customers",
     "agg": "final"
    }
   ],
   "params": {
    "Contact_Rate": {
     "on": true,
     "low": 3,
     "high": 9,
     "dist": "triangular"
    },
    "Churn_Rate": {
     "on": true,
     "low": 0.01,
     "high": 0.04,
     "dist": "uniform"
    },
    "Price_Sensitivity": {
     "on": true,
     "low": 1,
     "high": 2.5,
     "dist": "uniform"
    },
    "Ad_Effect": {
     "on": true,
     "low": 0.003,
     "high": 0.007,
     "dist": "normal"
    }
   }
  }
 },
 "dashboard": {
  "controls": [
   "Marketing_Budget",
   "Budget_Share__North",
   "Budget_Share__South",
   "Budget_Share__West",
   "Price"
  ],
  "charts": [
   "Customers",
   "Total_Customers",
   "Profit",
   "Cumulative_Profit"
  ]
 },
 "plots": [
  "r3",
  "r19",
  "r2",
  "r25",
  "r24"
 ],
 "view": {
  "x": 20,
  "y": -120,
  "w": 1200,
  "h": 820
 }
}