Hi, there are two ways to go about rating calculations. Ever since the rating system switched a few years ago it's different (better in my opinion) than it was.
Option #1: As you see in your match history it is always recorded as one game, with the result being a win or loss (+ or -) with the number of ends (2, 4, 6, 8, 10) AS LONG AS the original number of ends was set. This does not apply for the *ANY* amount of set ends feature. For the rating calculator, enter the game as a one-end match, with the final score being as shown in the info. So, if I am rated 400 playing another 400-rated player, and I win a 6-end game 7-4, I enter the result as +6 (win, followed by number of ends) for me and 0 for the opponent. My rating increases to 422, and the opponent drops to 378.
Option #2: Enter the ratings as normal, but this time indicate the actual number of ends being played in the game (6 ends). Enter the actual score of the game. The rating result will be the exact same, changing to 422 and 378.
As for the actual design of the rating system, you can read more about Árpád Élő's rating system here.