"""Original arithmetic from the cited study inputs. No new observations."""
import math,json
INPUTS = {'focal_extra_units_per_week': 16.7, 'focal_baseline_units_per_week': 114.9, 'first_accessory_video_extra_units_per_week': 18.83, 'accessory_baseline_units_per_week': 66.58, 'separately_estimated_focal_extra_revenue_USD_per_week': 321.6, 'separately_estimated_accessory_extra_revenue_USD_per_week': 203.63}
FORMULAS = {'focal_unit_change_percent_from_rounded_inputs': '100*focal_extra_units_per_week/focal_baseline_units_per_week', 'accessory_unit_change_percent_from_rounded_inputs': '100*first_accessory_video_extra_units_per_week/accessory_baseline_units_per_week'}
if __name__ == '__main__':
    scope={**INPUTS,'exp':math.exp}
    results={k:eval(v,{'__builtins__':{}},scope) for k,v in FORMULAS.items()}
    print(json.dumps({'inputs':INPUTS,'expressions':FORMULAS,'results':results},indent=2))
