"""Original human-work planning arithmetic; not client results or measured savings."""
from fractions import Fraction
volume=100
manual_each=3
routine_each=Fraction(1,5)
reviews=25
review_each=2
exception_each=8
maintenance=30
manual=volume*manual_each
def automated(exceptions):return volume*routine_each+reviews*review_each+exceptions*exception_each+maintenance
base=automated(10);higher=automated(20)
break_even=(manual-volume*routine_each-reviews*review_each-maintenance)/exception_each
assert manual==300
assert base==180
assert manual-base==120
assert higher==260
assert manual-higher==40
assert break_even==25
print({'manual_minutes':manual,'routine':float(volume*routine_each),'reviews':50,'ten_exceptions':80,'maintenance':maintenance,'base_total':float(base),'base_released_capacity':float(manual-base),'twenty_exception_total':float(higher),'twenty_exception_released_capacity':float(manual-higher),'break_even_exception_count':float(break_even)})
print('6/6 human-work arithmetic assertions passed. Reviews and exception repair are additional work stages; machine runtime is excluded.')
