Update beta_calculator.py