Calculations of middle ratings