add switch_calc.py