What is the principle that is applied to determine how much compensation a party receives in a quasi-contract settlement?.