Any necessary expense which one of two contracting parties incurs in complying with the contract may be recovered as damages.