"""Reproduce only the manuscript’s explicit illustrations; no empirical effect estimation."""
import json
from pathlib import Path
fixed=600; hosted=.06; local=.01; extra_checking=.04
rows=[]
for volume in [2000,20000]:
 total=fixed+volume*local
 rows.append(dict(monthly_accepted_tasks=volume,local_total_gbp=total,local_per_accepted_task_gbp=total/volume,hosted_total_gbp=volume*hosted))
result=dict(status='Illustrative assumptions, not observed effects or quoted prices',equal_quality_delivery_assumed=True,monthly_fixed_local_cost_gbp=fixed,hosted_per_accepted_task_gbp=hosted,base_local_variable_per_task_gbp=local,base_break_even_monthly_tasks=fixed/(hosted-local),volume_scenarios=rows,extra_checking_per_task_gbp=extra_checking,local_variable_with_checking_gbp=local+extra_checking,break_even_with_checking_monthly_tasks=fixed/(hosted-local-extra_checking),no_break_even_condition='If the local variable cost is at least the hosted cost, positive fixed cost cannot be recovered by volume in this model.')
assert round(result['base_break_even_monthly_tasks'])==12000
assert round(result['break_even_with_checking_monthly_tasks'])==60000

Path(__file__).with_name('results.json').write_text(json.dumps(result, indent=2, ensure_ascii=False)+'\n')
