"""Reproduce the explicitly illustrative example in this historical review."""
import json
from pathlib import Path
reports, old_minutes, new_minutes = 100, 60, 20
extra_review_minutes, maintenance_hours = 15, 20
gross_hours = reports * (old_minutes-new_minutes) / 60
review_hours = reports * extra_review_minutes / 60
net_hours = gross_hours-review_hours-maintenance_hours
results = {"status": "illustrative, not observed", "reports_per_month": reports, "gross_hours_saved": gross_hours, "extra_review_hours": review_hours, "maintenance_hours": maintenance_hours, "net_hours_saved": net_hours, "assumed_value_per_hour_GBP": 50, "capacity_value_GBP": net_hours*50, "monthly_other_cost_GBP": 1500, "net_value_GBP": net_hours*50-1500, "boundary": "Capacity value requires useful redeployment; it is not a measured cash saving."}
assert abs(net_hours-21.66666666666667) < 1e-10

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