Compute badness