How the maths works
First we calculate the bonus by applying the percentage to your deposit, then applying any maximum-bonus cap. The wagering target is the stated multiplier applied either to the deposit or to the deposit plus bonus, depending on the terms.
Game contribution matters because not every game counts equally. A £100 rollover target at 20% contribution requires £500 of play on that game to make the full £100 of progress.