Compute and print ideal bonus in table