its some weird crap that makes no sense and i don't fully remember... i think the way it works though is this -
if a player has not yet made a complaint, then their calculation on whether or not to make a complaint is based on all games - foul trouble or no.
however, the decision to actually quit or not discounts foul out games if and only if it went against you, on a game by game basis (meaning, if you promised 20m, and a guy fouls out with 1-19m, the game doesn't count. if he fouls out with 20+ minutes, the game counts - and really 20m might actually be 18m if that is the player's expectation - not 100% clear). also once you get a complaint, the follow up to that complaint uses the same logic - discounting foul out games if they go against you.
and in all cases its only foul out games, if a guy has foul trouble and plays fewer minutes but never fouls out, its just treated as a normal game.