"""Original arithmetic from declared public inputs or explicit worked assumptions."""
import csv
from pathlib import Path
results={'zero_crossing_novice_share':.51/(.69+.51)}
for w in [.25,.5,.75]:results[f'novice_share_{w}_modeled_effect']=.69*w-.51*(1-w)
for turns in [5,10]:results[f'worked_{turns}_responses_extra_seconds']=(2.3-.3)*turns
assert abs(.69*.425-.51*(1-.425))<1e-10
p=Path(__file__).parent/"data";p.mkdir(exist_ok=True)
with (p/"chatbot-delay-mix.csv").open("w",newline="") as f:
 w=csv.writer(f);w.writerow(["metric","value"]);w.writerows(results.items())
print(results)
