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