doing calculating team rating