Skip to content
simhood
← Dev log
  • economy
  • simulation
  • charts

How the town's economy works

How the town’s economy works

Earlier entries showed the dashboard and the engine under it. This one is about the part the game is really about: the economy. It follows the money through a town of about 1,900 people, explains the rules each side plays by, and then tests them with an experiment, a shock and thirty towns run side by side.

Everything in the charts comes from fresh runs of the main town on 12 October. The yearly figures are 30 towns (seeds 1 to 30) run for 365 days each. The sales tax experiment is 20 runs, five seeds for each of four tax rates. The farm shutdown is five seeds. The money was balanced in every one of the 10,950 town-days of the year runs: at the end of each day, every cent held by anyone adds up to exactly zero.

These are early rules with placeholder numbers for many things. The last section says where the economy is thin.

Who is in it

A screenshot of the dashboard with the Why panel open on the price of groceries: a net price of £3.1267 per kilo plus £0.3127 of sales tax makes £3.4394, and since the week before the net price is up 1p while the tax adds 31p

The dashboard, a week after a 10% sales tax started. The Why panel for the price of groceries reads: net price £3.1267 a kilo, plus £0.3127 of sales tax, makes £3.4394. Compared with the week before, the shop’s own price is up £0.0103 and the tax accounts for £0.3127 of the £0.323 rise. We come back to this below.

The town has five kinds of actor, and every one of them has an account in the ledger:

  • Households earn wages, sometimes dividends, and pensions or benefits. They buy food, household goods and services, pay rent or own their home, and pay council tax.
  • Firms sell things, buy ingredients, pay wages and hand their spare cash to their owner as a dividend. Each firm is owned by one household. A town has about 13 of them: one farm, two grocers, two or three personal-services shops (a hairdresser, say) and between 3 and 11 offices that sell services to the outside world.
  • Landlords aren’t a separate class. They are households that own more than the home they live in, with between one and ten dwellings to let.
  • The council collects council tax and, if you choose, a sales tax. It spends only on public services, which its own public employer delivers with its own staff on the same wage as everyone else.
  • The rest of the world stands for the whole country. It sells the town household goods, buys the offices’ services, sells emergency food when the town runs out and pays pensions, benefits and housing support.

office services bought
£37.0m

household goods bought
£41.3m

pensions and benefits £6.7m
housing support £0.8m

wages (with the public employer's)
£32.4m

dividends to owners
£9.5m

shopping and services

rent to landlords
£2.5m

council tax £1.4m
sales tax (when set)

public services
£1.4m

Rest of the world

Firms

Households
(owners, renters, landlords)

City council

Public employer

office services bought
£37.0m

household goods bought
£41.3m

pensions and benefits £6.7m
housing support £0.8m

wages (with the public employer's)
£32.4m

dividends to owners
£9.5m

shopping and services

rent to landlords
£2.5m

council tax £1.4m
sales tax (when set)

public services
£1.4m

Rest of the world

Firms

Households
(owners, renters, landlords)

City council

Public employer

The money flows, with the median year of 30 towns on each arrow where the ledger keeps a line for it. Spending in the shops isn’t labelled because it has no line of its own: it is part of the market trades in the chart below.

The next chart is the same year as a ranking.

Horizontal bars of a year’s payments in the town, from market trades at £81.9 million down to housing support at £0.8 million, with the lowest and highest of 30 towns marked

A year of money, by kind of payment, for the median of 30 towns with the lowest and highest town as whiskers. Market trades at £81.9 million count every sale between anyone, including firms buying ingredients from each other and the two trades with the outside world below it. Household goods are the town’s largest purchase from outside (£41.3 million) and office services its largest sale (£37.0 million). Wages are £32.4 million, so the offices’ exports pay for the household goods the town can’t make.

Two things stand out. First, the town pays for what it imports by selling services: £37.0 million of office services against £41.3 million of household goods. Second, rent and council tax are small next to wages and to the other flows. A 10% sales tax raises £348,000 in a month, as we see below, where a whole year of council tax raises about £1.4 million, so a tax on shopping is a much bigger lever than the council tax.

One day, in order

The economy runs on a daily rhythm, with a few events on fixed days of the month. A day goes like this:

HouseholdsJob marketMarketsFirmsOutside worldHouseholdsJob marketMarketsFirmsOutside worldMidnightOn the 1st: benefits, council tax, public services, then rentOn the 28th: wages, then dividendsImports for sale, export bidsRead yesterday's sales, set the price, plan the output, produceOffers of goods, bids for ingredientsOpen jobs (or stop hiring)Bids placed the evening beforeClear every market: fill, share out shortages, payRevenueGoods (the sales tax goes to the council)Quits, then layoffs, then hiringEat, spoil, budget, bid for tomorrowNeeds, distress, mood
HouseholdsJob marketMarketsFirmsOutside worldHouseholdsJob marketMarketsFirmsOutside worldMidnightOn the 1st: benefits, council tax, public services, then rentOn the 28th: wages, then dividendsImports for sale, export bidsRead yesterday's sales, set the price, plan the output, produceOffers of goods, bids for ingredientsOpen jobs (or stop hiring)Bids placed the evening beforeClear every market: fill, share out shortages, payRevenueGoods (the sales tax goes to the council)Quits, then layoffs, then hiringEat, spoil, budget, bid for tomorrowNeeds, distress, mood

A day in the economy. A firm’s offers meet that day’s bids at once. A household’s bids are placed in the evening and meet the next day’s offers.

Every market clears once a day. Sellers post an offer with a price and buyers post bids with a limit. Bids aimed at one seller are filled first, at that seller’s price. The rest are filled from the cheapest remaining offers. When there isn’t enough for everyone, the buyers are rationed pro rata: everyone gets the same share of what they asked for. Every fill is one booked payment, and the sales tax, when there is one, goes into the same booking, so it can’t be forgotten.

Not everything happens every day. Pensions and the jobseeker’s benefit arrive weekly. On the 1st, income support and child benefit arrive, housing support follows, then rent is due and the council collects its tax instalment (ten of them, April to January) and tops up the public employer. Wages and dividends go out on the 28th.

Four stacked bar charts of the daily payments in one town from February to April: shop spending, wages and dividends, rent and council money, and benefits

The month’s pulse in one town, 1 February to 30 April. Wages and dividends all go out on the 28th (£3.77 million on 28 February). Rent, housing support, council tax and the public employer’s top-up land on the 1st. Shop spending drops to £190,000 on a payday, jumps to £285,000 the next day (up half) and slides back to £194,000 before the next one.

The shop spending is the most visible effect of the rhythm. A household spends a thirtieth of its cash a day, so spending follows how much money people have in their pockets, and that follows the calendar.

A line chart over a year of the median cash per person for owner households and renter households, climbing at every payday and falling through the month

The same rhythm in the pockets. The median owner household holds about £2,700 per person just after payday and about £1,240 just before the next one. Renters go from about £2,500 to £1,100. (One town, seed 1.)

The richest few matter as well: in that town the 13 richest households hold £1.24 million of the £5.88 million in households’ hands at the end of the year, about a fifth.

How a firm decides

A firm in the town makes five decisions a day: what to expect, what to make, what to charge, how many people to want and, once a month, how much to hand to its owner. It never sees the other firms’ plans. It sees only what its own books say.

yes

stock too high

neither

yes

no

yes

yes

Midnight: yesterday's books

Expect sales:
move a tenth of the way
towards what sold or was asked for

Plan the output:
expected sales, plus what will spoil,
plus a tenth of the gap
to about 5.5 days of stock

Produce what the plan asks,
limited by staff hours and ingredients

Offer it for sale

Sold out yesterday,
or stock below target?

Raise the price a little:
at most about 0.1% a day

Cut it a little

Hold

Never below cost;
drift about 1% a day
towards the market average

Staff needed for the plan

Cash under 10 days of wages?

No new hires

Post jobs for the missing staff

More staff than needed
for 30 days running?

Lay off some of them, latest hired first

Within a week of payday
and short of the wage bill?

Lay off until the wages are covered

yes

stock too high

neither

yes

no

yes

yes

Midnight: yesterday's books

Expect sales:
move a tenth of the way
towards what sold or was asked for

Plan the output:
expected sales, plus what will spoil,
plus a tenth of the gap
to about 5.5 days of stock

Produce what the plan asks,
limited by staff hours and ingredients

Offer it for sale

Sold out yesterday,
or stock below target?

Raise the price a little:
at most about 0.1% a day

Cut it a little

Hold

Never below cost;
drift about 1% a day
towards the market average

Staff needed for the plan

Cash under 10 days of wages?

No new hires

Post jobs for the missing staff

More staff than needed
for 30 days running?

Lay off some of them, latest hired first

Within a week of payday
and short of the wage bill?

Lay off until the wages are covered

A firm’s day. The price rule is a nudge, not a jump: a firm that keeps selling out edges its price up, and one with stock piling up edges it down.

The price rule is the one that keeps the economy stable. A firm that keeps selling out, or whose stock sits below target, nudges its price up by a small random share of a 0.1% daily step; one that has too much stock nudges it down. It never goes below the cost of making a unit, and a gentle pull of about 1% of the gap a day keeps it from wandering off from the market average.

The two layoff rules show how a lesson became a rule. Early on, a firm laid off a worker after a single slow day and then took about a month to hire a replacement, and groceries rose 8.5% over a year in the median town. Now a firm lays off only after it has had more staff than it needs for 30 days running, about as long as it would take to replace them, and the rise in the median town is 2.7% (both recorded when the rule changed). Separately, a firm that can’t cover its next payroll in the week before payday lays staff off until it can. Unpaid wages on seed 1 over a year went from £13,481 to nothing, and across today’s 30 runs the median town has none and the worst has £270.

Each firm type is built from the same parts. The farm makes 50 kilos of produce from 60 minutes of labour. A grocer turns 2 kilos of produce into 2 kilos of groceries in 12 minutes. Personal services and office services are billed minutes of labour and can’t be stored. Opening cash is 30 days of expected sales, and what a firm holds beyond 30 days of its costs goes to its owner on the 28th as a dividend.

How a household budgets

A household has one bank account and one daily rule: spend a thirtieth of what you have.

Cash

Today's budget:
one thirtieth of cash

Food first:
1.2 kg a day per person,
and a seventh of the gap
to a week's pantry

What is left:
98% household goods,
2% personal services

Pick the shop:
among the 8 nearest,
weighted by size, nearness and low price

Bid, with a limit above the price
(including any sales tax)

Filled at tomorrow's market

Eat what arrives, the rest spoils slowly

Unmet food lowers the food need,
which lowers mood

Cash

Today's budget:
one thirtieth of cash

Food first:
1.2 kg a day per person,
and a seventh of the gap
to a week's pantry

What is left:
98% household goods,
2% personal services

Pick the shop:
among the 8 nearest,
weighted by size, nearness and low price

Bid, with a limit above the price
(including any sales tax)

Filled at tomorrow's market

Eat what arrives, the rest spoils slowly

Unmet food lowers the food need,
which lowers mood

A household’s day. Food is a need and always comes first. What is left is discretionary and splits almost entirely into household goods, which no firm in the town makes, so they come from the outside world.

Because only a thirtieth of the cash is spent each day, a household with a pantry and a month’s cash behind it doesn’t panic: a lost job takes weeks to bite. A household that is short of cash buys less, not worse, and the effect shows first in household goods and services. Food is protected by being asked for first.

There is a catch the chart above shows. Household goods are the town’s biggest outflow, because no firm in town makes any, so when households cut back, the cutback shows first in what they buy from abroad.

Jobs

A line chart of the employed share of the labour force over a year, median of 30 towns with a band between the lowest and highest, declining from 99.6% to 99.0%

Employment over a year: the median of 30 towns falls from 99.6% to 99.0% of the labour force, and the lowest and highest town are about a point apart by the end (98.3% to 99.6%). The thin grey line is seed 1.

Every firm posts the same wage, £109.51 for each day worked, about £40,000 a year, and nobody asks for more. Workers aren’t picky either: someone without a job sends one application a day to a nearby opening, weighted by how near it is, and takes the best-paid offer they get. A failed search doubles the wait before the next one, up to a week. Each opening that has an applicant leads to an offer 3.3% of days, so a post takes about a month to fill.

The numbers are quiet. Across 30 towns the median year has 42 hires and 43 quits (about 5% of the workforce a year), with just 3 layoffs and no closures. About 19 jobs are open at any time. The median town has 828 people in the labour force, 99% of them in work.

That 99% is too high: the UK averaged about 6% unemployment from 1996 to 2010, the reference the project’s checks use. The “What’s missing” section says why: the council’s public employer takes on about 34 people (4% of jobs), and nobody moves into town to take a job there.

Prices

Three line charts of weekly traded prices as a percentage of base price over a year, for produce, groceries and personal services, each with a median line and a band for the lowest and highest of 30 towns

Weekly traded prices, as a share of each good’s base price, for 30 towns. Groceries drift up the most: the median ends the year about 9% above base and the highest town about 14%. Produce and personal services stay closer to base.

Every price starts at its base, the figure the rest of the world pays: £0.50 a kilo for produce, £3 a kilo for groceries, £33 an hour for personal services. As the price rule above nudges them, they drift. Over days 90 to 364 the median town’s prices average 102.5% of base for produce, 106.8% for groceries and 103.3% for personal services. Across the 30 towns, the lowest and highest averages are 100.6% and 106.3% for produce, 103.9% and 110.1% for groceries, and 101.2% and 104.8% for personal services.

Homes and rent

About five households in eight start out as owners; the median town has 304 renting households at the end of the year (38% of all). Landlords are other households, each with between one and ten dwellings. A home rents for a median of £755 a month, scaled by its size and nudged down on streets with bad air. A tenancy runs for 12 to 24 months and is re-priced when it renews.

Rent is all or nothing: if a household can’t cover it on the 1st it goes into arrears, and the next month the household pays an instalment of the arrears as well. A renter household where nobody works gets housing support, up to a cap, from the outside world. This keeps arrears low: the worst month-end in the median town has 0.3% of renters in arrears, and no town has more than 1.4%. There is no eviction in the model yet, so arrears pile up without consequence beyond the household’s mood.

The council and its levers

The council’s budget is deliberately simple. Three levers control it:

  • Council tax, a yearly Band D figure of £2,392 by default. Each home gets a band from its floor area, in England’s proportions, and pays that band’s share in ten instalments from April to January. One adult living alone pays 25% less, and a household where nobody works pays 22% less.
  • Public services, £66 a month per resident by default. This is what the council tops its public employer up to each month; the employer spends it on wages.
  • Sales tax, 0% by default, on everything households buy. It doesn’t apply to firms’ own purchases or to exports.

The median year raises £1.37 million in council tax and spends £1.39 million on services. The council never borrows. It starts with a reserve of three months’ services spending and spends from it until the first tax instalment in April. If the money runs out, it pays what it has and the town gets an event saying services were underfunded. Nothing balances itself: if you want to spend more, you raise a tax. A change made through a lever shows when the next market clears, or, for the monthly ones, on the 1st.

Money and mood

A resident’s mood starts at 900 points out of 1,000 and loses points for seven things: food, job, money security, prices, rest, company and distress. It falls most when someone is out of work (60 points), has money worries, or is paying a lot more for what they buy. Money security reads two things: how many months of their needs a household has in cash (one month of buffer gives it half security), and, after two months of history, how its income compares with its needs. Mood averages 787 points across the 30 towns, from 784 to 791. About one adult in six (16.5%, from 14.2% to 18.1% across towns) shows signs of distress, a score that goes up with unemployment, poverty and arrears.

An experiment: a sales tax

The levers aren’t decoration. To see how connected the economy is, we raised the sales tax to 5%, 10% and 15% on 1 April (day 90) in five towns each and compared them with the same towns without the tax.

Two line charts of days 80 to 119 for four tax rates: groceries’ price including tax jumps at day 90 by the tax rate and mean mood steps down by 6, 13 and 19 points

Top: what a household pays for a kilo of groceries, net price plus tax. The price jumps on the morning after the change: from £3.13 to £3.29, £3.44 and £3.60 for 5%, 10% and 15%. The shop’s own price barely moves (the dashboard’s Why panel above attributes £0.31 of the £0.32 rise to the tax). Bottom: mean mood, from 786.1 points in the untaxed towns to 779.6, 773.3 and 767.1 averaged from a week after the change. Mean of seeds 1 to 5.

Sales tax raised

Shelf prices up by the tax,
the next morning

Households' budgets buy less

Household goods bought:
down about 10% at a 10% tax

Mood:
about 13 points lost at 10%

Town price index:
up about 6%, since rent and
imports aren't taxed

Council revenue:
£348,000 in a month at 10%

Piles up in the council's account,
since the spending lever is separate

Sales tax raised

Shelf prices up by the tax,
the next morning

Households' budgets buy less

Household goods bought:
down about 10% at a 10% tax

Mood:
about 13 points lost at 10%

Town price index:
up about 6%, since rent and
imports aren't taxed

Council revenue:
£348,000 in a month at 10%

Piles up in the council's account,
since the spending lever is separate

What a sales tax does, as measured in the runs.

The measured chain, for the median of the five seeds in each variant:

  • Shelf price: groceries rise by exactly the tax, by the day after the change.
  • Spending: household goods bought in days 97 to 119 are 94.6%, 89.7% and 85.2% of what the untaxed towns buy, at 5%, 10% and 15%.
  • Mood: the score against the untaxed twin is 991.7‰, 983.7‰ and 975.8‰, which is 6.5, 12.8 and 19.0 points lost.
  • The cost-of-living index that mood reads rises by 3.1%, 6.1% and 9.2%, not by the full tax rate, because rent and imports aren’t taxed.
  • Revenue: in the 30 days from the change, the council raised on average £182,000, £348,000 and £499,000. For comparison, a whole year of council tax raises £1.37 million.

That revenue isn’t spent: public services spending is its own lever, so at the end of the 120 days the 10% variant’s council had £415,000 in its account, up from £22,000. Until a player raises the services lever, the tax only takes money out of the town.

A shock: the farm shuts

The town has one farm. We closed it at day 90 and reopened it at day 150, in five towns, to see what an economy does when its first link breaks.

grocers cannot find produce

a day they can

21 days short in a row

any day the outside world sells

3 clearings in a row with no sales from outside

LocalOnly

Counting

Imports

grocers cannot find produce

a day they can

21 days short in a row

any day the outside world sells

3 clearings in a row with no sales from outside

LocalOnly

Counting

Imports

The import backstop. The outside world doesn’t rush in: it opens its produce shelf at a 25% mark-up, up to 4,000 kilos a day, only after 21 days of local shortfall, and keeps it open until local sellers win the market back.

Three line charts for five towns from day 80 to 239: the share of produce demand unfilled rises to 100% around day 100, the share of food eaten falls to 10 to 28% around day 115 and recovers by day 123, and imported produce supplies the whole market from day 116 until the farm’s staff return

Five towns, one line each, with the shut-down period shaded (days 90 to 150). Top: grocers can’t find produce from day 95 to 97 on. Middle: the share of food eaten by residents bottoms out between 10% and 28% of need, around day 114 to 116, a week of near hunger, and is back above 90% from day 121 to 123 once imports start. Bottom: imports supply all the produce for weeks and fade only as the farm rehires, falling to a fifth or less of produce traded between day 182 and 205.

The shortage plays out in order, in every town:

  1. Day 90: the farm stops producing but keeps selling its stock.
  2. Days 95 to 97: its stock is gone, and the share of grocers’ produce demand left unmet passes 30%.
  3. Days 105 to 106: the shops run out of groceries, and more than 30% of households’ demand for groceries (a seven-day average) goes unfilled.
  4. Days 114 to 116: what residents eat falls to between a tenth and a quarter of what they need. In the worst of the five towns, seed 5, residents eat 10% of their need over a week.
  5. Days 114 to 116 as well: the 21st day of shortage arrives and the outside world starts selling produce at a 25% mark-up.
  6. Days 121 to 123: residents eat at least 90% of their need again. Across the five runs, the seven-day average is under 90% of need for 11 or 12 days.
  7. Day 150: the farm reopens and rehires slowly. Local produce is cheaper than imports, so it sells first, and the imports fade.

The 21-day wait is deliberate: imports with no wait would fill the gap on the first day, and there would be nothing to recover from. The test that guards this only asks that residents are back to 90% of their need before the farm reopens; it doesn’t ask how deep the hunger goes, and a week at between a tenth and a quarter of one’s food is harsh. Whether the wait should be shorter is a question for when the economy meets a player who can do something about it.

Swapping the price mechanism

The same town can run with a different market. We swapped the market’s price setting for one where every good always trades at its base price, and ran five seeds of the earlier, smaller version of the town (it has no council) for 240 days. Employment over days 90 to 239 is 95.5% with the market finding its prices and 95.6% with them fixed. The groceries sold each day are the same to within a gram (2,446,763 g against 2,446,764 g in seed 1). The visible difference is the prices: with the market free to find them, a kilo of groceries in seed 1 trades at £3.20 and an hour of personal services at £33.70; with prices fixed, at £3.00 and £33.00.

The lesson is a modest one: in this economy, prices matter less for how many people work and how much food is eaten than you might expect. Those follow needs, wages and the calendar. That will change when firms have more to choose than their price.

Thirty towns, not one

A single run can mislead. Each seed makes a town that differs in size and layout as well as in luck: across the 30, a town has between 1,632 and 2,211 residents, between 715 and 937 households and between 10 and 18 firms.

Six dot strips, one dot per town, for employment, the groceries price, mood, distress, rent arrears and the share of jobs held by the council, with the median marked

Thirty towns on six measures, each averaged over days 90 to 364 (the worst month-end for arrears). The median is in orange.

Measure Lowest town Median Highest town
Employment, share of the labour force 98.6% 99.1% 99.5%
Groceries price, share of base price 103.9% 106.8% 110.1%
Mean mood, points 783.8 787.4 790.5
Adults in distress 14.2% 16.5% 18.1%
Renters in arrears, worst month-end 0.0% 0.3% 1.4%
Council jobs, share of all jobs 3.9% 4.2% 4.4%

Two things to read from it. First, the economy settles: no town runs away, and the project’s own checks, which hold the main town to ranges for prices, employment, food, arrears, mood and distress, pass on all 30 seeds (recorded 12 October). Second, the spread is real: groceries average 4% above base in one town and 10% above in another, from nothing but a different seed. A tax or a shock has to be judged against that spread, not against one lucky run, and this is why the sales tax experiment above used five towns for each rate.

What’s missing

The economy hangs together, but it is thin. Here is what a player or researcher should know it doesn’t do yet:

  • Employment runs too high in the main town. The council’s jobs get no labour-supply response (more public staff doesn’t make more people join the labour force), and nobody moves into town to fill vacancies or out of it when work is scarce. Nobody commutes in either. The result is 99% in work, against about 6% unemployment in the reference the project’s checks use.
  • No migration, and no births or deaths in this town. Its population is fixed for the year. The engine can already model births and deaths, and a variant of the town does, but the main town doesn’t use it yet.
  • One wage for everyone. Every job pays £109.51 a day. No firm competes on pay, nothing makes a worker quit for a better job, and there is no minimum wage to speak of.
  • No social landlord. Every rented home is let privately by another household, and arrears have no consequence beyond mood.
  • No credit and no banks. Households can’t borrow, firms can’t borrow, and the council can’t borrow. All money is the money the town started with, plus what comes from outside.
  • The owners keep the profits. Each firm has one owning household, so dividends concentrate: the richest 13 households hold about a fifth of the cash in seed 1.
  • Household goods all come from abroad. The town makes no goods other than food and services, so a lot of what residents buy leaves town.
  • Nothing is built during a run. No new homes, shops or roads appear; the town’s firms and buildings are fixed at the start, and the sales tax revenue piles up unspent unless a player raises the services lever.

What comes next

Next on the list are time compression, so that a year passes in under half an hour at the fastest setting with the economy keeping its rhythm, and development on zoned land, so the town can grow into new homes and jobs and the numbers above start to move for reasons a player caused. Both come with the game client’s building tools.