 This principle is relevant when a contractor's performance is in some way deficient, through no willful act by the contractor, yet is so nearly equivalent that it would be unreasonable for the owner to deny the agreed upon payment.If a contractor successfully demonstrates substantial performance, the owner remains obligated to fulfill payment, less any damages suffered as a result of the deficiencies in workmanship by the contractor.The principle is also found in the law of unilateral contracts.