The detriment caused by the breach of an agreement to purchase an estate in real property is deemed to be the excess, if any, of the amount which would have been due to the seller under the contract over the value of the property to him or her, consequential damages according to proof, and interest.