## Inspiration A teenager starting a small business has to do more than sell. A customer haggles, a client wants work for free, a friend asks for credit, a loan shark offers quick money, or a fake EcoCash message arrives. Tanga was built so teens can practise these moments before real money is at risk. ## What it does Tanga is a phone-first business simulator for teenagers. A pupil can:
- plan a product, service or subscription business
- practise with AI characters: a haggler, a free-work client, an investor, a price rise, a friend wanting credit, a chimbadzo offer and a fake EcoCash message
- get a coach review after practising
- practise saving from profit with an EcoCash simulation that never asks for a PIN
- run several businesses, keep a diary and reflect weekly
It is a learning aid, not financial advice, and it never holds or moves real money.
## The maths The app's code does the calculations, not the AI. For a product:
$$\text{cost per item} = \frac{\text{batch cost}}{\text{items in batch}}$$
$$\text{profit per item} = \text{price} - \text{cost per item}$$
$$\text{margin} = \frac{\text{profit per item}}{\text{price}} \times 100\%$$
$$\text{break-even items} = \left\lceil \frac{\text{start-up cost}}{\text{profit per item}} \right\rceil$$
Break-even applies when profit per item is above zero. Money is counted in whole cents, and cost per item is rounded up so it never looks cheaper than it is.
## How we built it Tanga is a progressive web app written in plain JavaScript, HTML and CSS, hosted on Vercel. A small relay sends requests to CAIMEx (Qwen 3.5, DeepSeek V4 Flash and caimex/auto). AI replies must pass checks, and the app overrules unsafe or below-cost moves. Phone numbers, emails, ID numbers and PINs are removed from pupil text before it is sent. Without internet, the app uses built-in explanations and a practice script.
We had help. A developer who is a family member of a team member directed and helped build the app. The AI coding assistant Claude Code wrote the first version of the code, the practice scenes, the example numbers and the tests.
## Challenges
- CAIMEx does not accept calls straight from a web page, so the app needed a relay.
- AI replies vary from run to run, so they have to be checked.
- Shona answers had mistakes in testing and still need review by a Shona speaker. The screens are in English.
- Safety checks use simple word matching and can miss unusual wording.
## What we learned
- Code should do the money maths, while AI is better used to explain it and play characters.
- AI answers need checking before a learner sees them.
- Selling price alone is not enough: cost, profit and break-even decide whether a business works.
- Money safety matters: never share a PIN, and check what a loan really costs.
## What's next A sales and costs log, lessons with quizzes and badges, better Shona, and testing with pupils.
Built With
- caimex
- css3
- deepseek
- html15
- javascript
- node.js
- service-worker
- vercel