connected beta calculations to return_period_days