Prior to each game, the two teams sacrifice ten percent of their ratings into a pool of points to be divided up between the teams after the game based on the result. The winner gets 20 percent of the pool plus a proportion relative to the winning margin.
NW = 0.9 * OW + 0.1 * (OW + OL) * (0.2 + 0.8 * (RW / (RW + RL))
NL = 0.9 * OL + 0.1 * (OW + OL) * 0.8 * (RL / (RW + RL)
1. Australia plays Canada in a One Day International. Australia has an initial rating of 4000 so contributes 400 points to the game pool. Canada has an initial rating of only 1000 so only contributes 100 points to the game pool. Australia scores 300 runs then dismisses Canada for 200 runs to win the game. Australia's new rating is:
NW = 0.9 * 4000 + 0.1 * (4000 + 1000) * (0.2 + 0.8 * 300 / (300 + 200))
= 3600 + 500 * 0.68
So Australia wins the game but were expected to win by a greater margin so their ranking goes down and Canada's goes up by the same amount.
2. India plays Pakistan. Both have initial rankings of 3000 so each contributes 300 points to the game pool. India scores 300 runs in its 50 overs but rain interrupts the Pakistani innings and the Duckworth-Lewis calculation requires Pakistan to score 251 runs in 40 overs. Pakistan reaches 252 halfway through the 38th over.
RL = 251 - 1 = 250 RW = 252 * 40 / 37.5 = 269
NW = 0.9 * 3000 + 0.1 * (3000 + 3000) * (0.2 + 0.8 * 269 / (269 + 250))
= 2700 + 600 * 0.6146
The XODI ratings only cover One Day Internationals (ODIs) and other game played under the conditions of ODIs but between teams not granted full ODI status. The XODI website says it doesn't have a test ranking because there aren't enough two-innings games between the test teams and non-test teams.