Measuring Damages in the Law of Obligations