The Math Behind Bonus Systems and Why They Are Built That