OPINION
INTRODUCTION
This is a suit arising from a contract under which appellee, Hartland Developers, Inc., agreed to build an airplane hangar for appellant, Robert Tips. Alleging that Tips repudiated the agreement before the contract was fully performed, Hartland sued Tips ■ for breach of contract, unjust enrichment, and fraud. Tips counterclaimed, claiming breach of contract and violations of the Texas Deceptive Trade-Practices Act. After a bench trial, the trial judge awarded Hartland damages for breach of contract, offset by damages incurred by Tips for the work remaining. In its findings of fact and conclusions of law, the trial court stated that Hartland could also recover under theories of unjust enrichment and quantum meruit. It denied all causes pleaded by Tips. We affirm the judgment but remand for modification of the damages award.
STATEMENT OF FACTS
In 1985, Tips and Hartland entered into an agreement under which Hartland would construct an airplane hangar for Tips. The contract obligated Hartland to build the hangar on land leased to Tips or one of his entities by the City of San Antonio. Under the agreement, Hartland was to prepare the drawings and plans and specifications for the hangar and to secure all permits for its completion. The initial contract price was $229,-491, but the parties agreed to two change orders: a modification of the hangar doors and the installation of a mezzanine for offices. The additions brought the total contract to over $300,000. The parties agreed that Tips would pay this sum in three installments: the first due upon acceptance of the contract, the second due upon delivery of the steel building for the hangar, and the third due upon completion of the project and issuance of a certificate of completion from an engineer representing Tips.
At some point during construction, Hart-land ceased work on the project. In its pleadings and at trial, Hartland claimed that Tips had antieipatorily repudiated the agreement because of lack of funds. Tips claimed that he refused to pay the final installment because Hartland’s work was deficient. According to Tips, Hartland had provided no ramp for access in and out of the hangar, had not completed the electrical work for the project, and had failed to comply with San Antonio fire code requirements. Consequently, Tips was unable to secure a certificate of occupancy from the city.
The trial court awarded Hartland the amount owing on the contract, less the cost of completing the office mezzanine. Hart-land also received attorneys’ fees and pre- and post-judgment interest, assessed at ten percent of recovery. The court allowed Tips an offset of $65,000 for Hartland’s failure to provide ramp access to the hangar. The trial court found that the items needed to bring the building within the requirements of the *621 city fire codes were not contemplated by the parties in the agreement.
Tips appeals in six points of error, claiming (1) that the trial court failed to consider that implied covenants in a contract require a builder to deliver a building that complies with relevant building codes and regulations; (2) that the evidence was legally or factually insufficient to support the finding that the items necessary to bring the structure into compliance with the building code were not within the scope of the contract; (3) that Hartland had a duty to deliver a structure that was usable for its intended purposes; (4) that the evidence was legally or factually insufficient to support a finding that Hart-land substantially performed under the contract; (5) that Tips was entitled to additional offset damages, based on defects in the hangar; (6) that the trial court erred in calculating prejudgment interest at ten percent; (7) that the trial court erred in assessing prejudgment interest twice; and (8) that the trial court erred in calculating attorneys’ fees.
Implied Covenant
Tips’s first three points of error are based on his argument that implied in the agreement between himself and Hartland was a covenant to deliver a structure that meets building code requirements. Tips seeks an offset of damages for the amount it would take to bring the hangar into compliance with city fire code requirements. He asks this court to hold that all contractors, when entering into building contracts, impliedly agree to comply with relevant municipal and county codes so that the building is suitable for its intended purpose. Hartland asserts that there is no such implied covenant in Texas and that, even if there were, the parties in this case explicitly agreed to modify it. We find that such a covenant is implied in construction contracts, but we agree with Hartland that these parties modified the covenant by agreement.
Neither we, nor the parties, have found a Texas case that determines whether an implied covenant exists in construction contracts that the contractor comply with relevant municipal codes. We cannot dispute Hartland’s assertion that Texas courts have been reluctant to identify implied covenants. Such covenants will be implied only “when there is a satisfactory basis in the express contracts of the parties which makes it necessary to imply certain duties and obligations in order to effect the purpose of the parties in the contracts made.... [I]t must appear therefrom that it was so clearly in the contemplation of the parties so that they deemed in unnecessary to express it ... or that it was necessary to imply such [a] covenant in order to give effect to and effectuate the purpose of the contract as a whole.”
Freeport Sulphur Co. v. American Sulphur Royalty Co.,
Every contract incorporates existing laws, and a party’s obligation under a contract is measured by the standard of the laws existing at the time the contract is made.
Wessely Energy Corp. v. Jennings,
In making this determination, we have considered the rationale behind the tort duties imposed on those entering contracts. As one court noted, “[¡Implicit in every contract is a common-law duty to perform the terms of the contract with care, skill, and reasonable experience.”
Sipes v. Langford,
We believe that these tort principles are relevant to our consideration of implied contract covenants. Contractors, not owners, are in the best position to know about and comply with relevant building codes. Furthermore, buyers are not in the business of building; they are in,the business of occupying. They rely on builders to furnish structures that can be occupied. An occupation permit cannot be obtained for a building that does not meet fire codes.
At least one Texas court has approved an action for breach of contract where builders delivered a home that was not constructed in a good and workmanlike manner. In
Phillips v. Wick,
Several other jurisdictions have found such implied covenants in construction contracts. In
Carpenter v. Donohoe,
We hold that a cause of action is available to plaintiffs for breach of contract where a contractor has failed to comply with building codes relevant to the intended use of the structure. While we agree that findings of implied covenants are to be made sparingly, we believe this holding squares with Texas law, which holds that implied covenants will be found where necessary to effectuate the parties’ intentions and purposes in contracting. Unde
rream Piling Co.,
In the case before us, we believe there is sufficient evidence to support the trial court’s finding that the parties agreed to address the fire code requirements in change orders because of Tips’s uncertainty about how the structure would be used. Hartland *623 knew the intended purpose of the mezzanine. It was to contain offices, which meant stricter code requirements than those contained in the contract. The City of San Antonio approved the plans conditioned upon Hartland’s meeting these requirements in the mezzanine, and Hartland’s representative, Doug Crossland, agreed in writing to meet these requirements.
There was some testimony from both Crossland and David Lavelle, Tips’s representative, that the parties did not initially know what kind of fire protection would be required because of uncertainty about whether adjacent structures would be tom down and about the size of the hangar itself. Both men testified that Hartland had not included fire protection in its bid and that Tips and his representative knew this to be the case. Crossland testified that it would have been a waste of his client’s time and money to bid and build items that might turn out to be unnecessary. The trial court, after determining that the contract was ambiguous as to the scope of work it required, considered this extrinsic evidence and determined that the contract did not contemplate that code compliance was included in Hartland’s original bid. There is evidence that the parties discussed code requirements and intentionally left the issue for another day.
In reaching our decision on this point, we dispose of Tips’s second and third points of error. There is sufficient evidence in the record to support the trial court’s findings on the scope of the agreement. We agree that Hartland had a general duty to deliver a structure fit for its intended purpose, including compliance with code requirements. But we also find that the parties made their own arrangements that modified the general duty.
POINT OF ERROR FOUR: SUBSTANTIAL PERFORMANCE
In his fourth point of error, Tips claims that the evidence is legally or factually insufficient to support the trial court’s finding that Hartland had substantially performed under the agreement.
We review a trial court’s findings of facts under the same standard as that applied to jury verdicts for factual sufficiency.
Anderson v. City of Seven Points,
Legal sufficiency is tested by looking only at the evidence that favors the finding.
Stafford v. Stafford,
We agree with Tips that Hartland had not substantially performed under the contract. However, we find this point irrelevant to the resolution of this case. Substantial performance is a doctrine that allows
breaching
parties who have substantially completed their obligations to recover on a contract. White & Summers, Contracts § ll-18(b) (3rd ed 1987). Hartland was not a breaching party. A contractor can recover on a contract when the failure to substantially perform is the fault of the other party. A party injured by the anticipatory breach of another may elect to sue for damages under the contract.
See id.
at 632 & n. 91 (if owner repudiates construction contract, contractor may sue in damages or for restitution);
Taylor Pub. Co. v. Systems Marketing Inc.,
The trial judge based his damage assessment on anticipatory repudiation of contract. The evidence that Tips’s representative, Lavelle, instructed Hartland to cease work on the project because Tips no longer could afford to make payments was sufficient to support this finding.
See Tennessee Gas Pipeline Co. v. Lenape Resources Corp.,
POINT OF ERROR FIVE:
OFFSET DAMAGES
In his fifth point of error, Tips claims that the trial judge erred in not offsetting Hartland’s award for its failure to comply with fire codes and for Hartland’s failure to provide electrical connections to the hangar. Tips also claims he should be compensated $11,000 for a temporary access ramp he was forced to construct in anticipation of a permanent ramp being installed. Hartland only addresses the fire code requirements, by arguing that it had not yet reached an agreement with Tips on fire code compliance. As we discuss above, we agree with this contention. Additionally, we find that the $65,000 offset for the construction of a permanent ramp is sufficient compensation for that deficiency. However, we agree with Tips that the damages award must be offset by the cost of providing electrical outlets to the hangar.
Tips is entitled to an offset for electrical connections under a breach of contract theory.
1
Damages for breach of contract are the contract price, less the cost of completion.
Sage Street Assoc. v. Northdale Const. Co.,
Point of Error Six: Prejudgment Interest
In his sixth point of error, Tips claims that the trial court incorrectly assessed prejudgment interest at ten percent. The supreme court has recently spoken on this issue; however, we do not believe its new opinion invalidates the award before us, and we overrule this point of error.
Texas Revised Civil Statutes article 5069— 1.03 provides that when no specified rate of interest is agreed upon by the parties, interest at the rate of six percent per year will be allowed on all contracts from which the amount payable can be ascertained. Tex. Rev.Civ. Stat. Ann. art. 5069—1.03 (Vernon 1987) (repealed; now codified at Tex. Fin. Code Ann. § 302.002 (Vernon 1998)). If no amount payable is ascertainable, interest will be assessed at ten percent. Id. at art. 5069—1.05 (repealed; now codified at Tex. Fin.Code § 304.003 (Vernon 1998)).
Appellate courts have recently noted a trend toward strict construction of this statutory requirement, and Hartland relies on this trend.
See Great American Ins. Co. v. North Austin Mun. Utility Dist. No. 1,
The supreme court recently reversed the Austin court of appeals and affirmed that the statutory requirement is to be liberally applied. Great American Ins. Co. v. North Austin Mun. Utility Dist. No. 1, 950 S.W.2d *625 371, 373 (Tex.1997). The court stated that even if extrinsic evidence is required to affix damages, six percent is the correct assessment “so long as the contract fixes a measure by which the sum payable can be ascertained with reasonable certainty in light of the attending circumstances.” Id.
We do not believe this holding affects the case before us. The contract before the court in Great American Insurance Company provided the court a clear method for determining damages under the contract, although extrinsic evidence was required to reach the correct amount. Id. at 374. Here, the contract, while providing a clear indication of how the work was to be paid for, provided the trial court no method by which to determine damages. With no method for assessing damages available from the contract, the trial court correctly assessed prejudgment interest at ten percent.
Point of Error Seven
In his seventh point of error, Tips claims that the trial court erred to the extent that it imposed a double calculation of prejudgment interest. The trial judge issued two judgments with different commencement dates for the assessment of post-judgment interest. A motion to correct the first judgment, with a suggested corrected judgment, is missing from the transcript.
The parties agree on the error. Because the award already included pre-judgment interest, the correct date for beginning post-judgment interest was May 8, 1996, the date the judgment was signed. The erroneous judgment set the date at January 22, 1986, the date of the breach, and is wrong. Because the parties agree on this point, we declare that the correct judgment is that beginning the assessment of interest on May 8,1996.
Point of Error Eight
In his final point of error, Tips claims that, because prejudgment interest was miscalculated, the assessment of attorneys’ fees is also miscalculated. To the extent that the award is affected by this oversight or by the additional offset for electrical repairs, we sustain this point of error. On remand, attorneys’ fees must be proportionately reduced.
CONCLUSION
The trial judge heard sufficient evidence to determine that Tips had anticipatorily breached his agreement with Hartland. We remand only for a modification of damages to include an offset for expenses Tips incurred in finishing the electrical wiring and a proportionate reduction of attorneys’ fees. Further, we declare that the correct judgment of the trial court is that commencing the accrual of post-judgment interest on May 8, 1996.
Notes
. This would be true under a theory of substantial performance, as well. If recovery were based on a finding of substantial performance, the award would nonetheless be offset by the cost of remedying any defects.
. To the extent that any of the electrical costs were included in the offset for the mezzanine, this amount should be reduced.
