([Round 1 res] + [Round 2 res] + ... + [Round X res]) divided by X is your total resistance.
Wherever you got the bye, replace that number with a 0. So it would basically mean an opponent going 0-X, with the higher-level tournaments being an exception.