Ok I will try to explain it. The quick vesion...Its complicated, use a computer.
Basicly the penalty is supposed to reflect the difficulty of the race. It involves the top 5 people going into a race, and the top 10 people who finish.
Err lets try this...I am going to post a screen shot of how it is calculated..give me a few minutes...