When a real estate deal goes awry, one party often is entitled to liquidated damages, a sum of money set out in the purchase contract in that event.