comeuppance (n.)
also comeupance, 1859, presumably rooted in verbal phrase come up "present oneself for judgment before a tribunal" + -ance.