Scan Cost Calculator¶
Run the Scan Cost Calculator MicroSim Fullscreen
About This MicroSim¶
One scan in the dating-safety app runs eight paid checks. Some are priced per photo, one is billed again on every retry, and the rest are a fixed number of calls. This MicroSim lists all eight with made-up prices and asks you to add them up yourself before it shows the answer.
All prices are illustrative. Your vendors' pricing pages have the prices you'll pay. What carries over is the method: list each paid call, multiply by how many times one scan makes it, and add.
How to Use¶
- Read the challenge in the yellow box. The inputs for that challenge are already set and locked.
- Type your answer in dollars, such as
0.25or3000, and press Check or Enter. You get two tries. - After you check, the cost of each line, the cost per scan, per day and per month appear. The largest line is marked in orange.
- Hover over any row to see its working: price times calls. Hover over a total to see how it was built.
- After challenge 4, press Start exploring. The three sliders unlock and every total updates as you move them.
Iframe Embed Code¶
You can add this MicroSim to any web page by adding this to your HTML:
<iframe src="https://arunbatchu.github.io/good-enough-engineering/sims/scan-cost-calculator/main.html"
height="634px"
width="100%"
scrolling="no"></iframe>
Lesson Plan¶
Grade Level¶
Adult professional (Good Enough Engineering)
Duration¶
10-15 minutes
Learning Objective¶
The learner will calculate the cost per scan and the monthly bill of the dating-safety app from per-call prices, photos per scan, retries and scans per day, to within half a cent per scan and ten dollars per month.
Prerequisites¶
Usage-based pricing, per-call cost and cost per user action from Chapter 13. Retry from Chapter 9.
Activities¶
- Exploration (5 min): Work the four challenges in order. Each one changes one thing: the defaults, six photos, two retries, then the monthly bill.
- Guided Practice (5 min): In free exploration, set the retries to 10. Compare that to setting the photos to 6. Which moves the cost of a scan more, and why?
- Assessment (5 min): Choose any scans-per-day value and predict the monthly bill before you move the slider. Check your number against the sim.
Assessment¶
Mastery is 4 of 4 challenges correct. A per-scan answer counts when it is within $0.005 of the model value. A monthly answer counts when it is within $10. Moving the sliders is exploration, not evidence.
Things to Notice¶
- The people search stays the largest share at every setting.
- Retries move the total faster than photos do, because each retry is a full $0.15 people search.
- A quarter a scan at 400 scans a day is $3,000 a month.
References¶
- Chapter 13, "What One Scan Costs" and "A Worked Example: Adding Up a Scan", in this book.
- Chapter 9 of this book, on retries and failed calls.
- p5.js reference, the library this MicroSim is built with.