How are the points that are won or lost calculated?

Sometimews in games im being blown out but then when its over i only lose like 7 points, then in one close game i pulled through and won and got like 50 points.
How does this make sense, it doesn't, and i no that "The points to be awarded is calculated as (loser's score / winner's score) * 20, up to a maximum of 100 points from each opponent." which can be found on the instruction page score, rankin, and medals
But how are the winner and the losers score calculated
How does this make sense, it doesn't, and i no that "The points to be awarded is calculated as (loser's score / winner's score) * 20, up to a maximum of 100 points from each opponent." which can be found on the instruction page score, rankin, and medals
But how are the winner and the losers score calculated