You can calculate the rating gained or lost per match by:
Find the number of points gained.
Add the points to the current tally.
Divide the points by the number of matches played.
If the team loses the match, the points gained will be less, therefore reducing the average or team rating and vice versa. Read more