Baltor Get started

Library / Code module

Program capacity, staffing and break-even budget

program_capacity_budget

Compute seats, people turned away, staff per session, cost, revenue, net, cost per participant, break-even fee and break-even attendance for a session-based program, with named scenarios.

Files, names only

  • ATTRIBUTION.md 4.9 KB
  • LICENSE 1.0 KB
  • ONET-ATTRIBUTION.md 6.3 KB
  • PROCEDURE.md 2.7 KB
  • README.md 3.9 KB
  • TOOLS.md 2.0 KB
  • component.json 11.1 KB
  • examples/known_good.json 2.3 KB
  • examples/known_wrong.json 522 bytes
  • kit_schema.py 11.4 KB
  • program_capacity_budget.py 6.9 KB
  • test_package.py 6.8 KB

Full files in your harness.

What it takes and gives

Runs with
Python 3.10 or later
Command
python3 program_capacity_budget.py < input.json
Function
program_capacity_budget.run
Required input
program

Cases it covers

  • Known wrong example: A scenario changes a field named price, which the program does not have, so the comparison would be silently wrong. Refused as unknown scenario field.
  • input invalid: refused with exit code 2
  • input not json: refused with exit code 2
  • unknown scenario field: refused with exit code 2
  • duplicate scenario name: refused with exit code 2
  • scenario value invalid: refused with exit code 2

Limits and scope

Limits
Every session is identical; attendance is an input, not a forecast. Staff are paid only for session hours. Taxes, refunds, no-shows and price elasticity are not modelled. Money is rounded to two decimals per line, so totals can differ from summed lines by a cent.
Work activities
Plan community programs or activities for the general public; Plan conferences, programs, or special events; Plan special events.

Details

Kind
Code module
Licence
MIT
Declared effects
runs commands
Source
github.com/alisonjieli-png/loop-engine/tools/creative_originals/occupation_task_kits/items/program_capacity_budget
Size
12 files, 59.8 KB
Identity
library.supply.creative_originals.ec7260eaf066e02d28b0edfa.68dd03b1f1fae60a
Version
68dd03b1f1fae60a94673faacb0309c39a23c4b278a4c2d1ddfd9fdbcc7f1714

The version is the SHA-256 of the item your harness downloads; every file in it names its own checksum.

Where it is shown

Related components

Something wrong with this item, its rights or its safety? Report it on the support page, or from your harness after a download.