By the Court,
Whether a sum denominated liquidated damages by the parties to a contract shall be recoverable as damages, in case of a breach of the contract, or whether notwithstanding what the parties have said, it shall be treated as a penalty, is often a difficult question. The only criterion by which it can be determined is to ascertain, by referring to all the provisions of the contract, what was really intended by the parties. If they have in fact agreed upon the amount of damages which one shall pay to the other in case he shall fail to perform on his part, it is not the province of the court to say that this part of the agreement shall not be as obligatory as any other. In this case, I think the parties intended to relieve the court, if either should elect to rescind the contract altogether, from the necessity of ascertaining the damages he should be liable to pay. They agreed that $500 should be the amount of such damages, and this court would have had no right to exonerate the party in default from his liability for its payment. But this sum was only agreed upon as the damages, in case of an entire failure to perform the contract. There is no reason to believe that the parties intended to have this liquidation
Watson, Wright and Harris, Justices.]