All contracts, express or implied, for the payment of money, or other thing, or for the performance of any act or duty bear interest from the day such money, or thing, estimating it at its money value, should have been paid, or such act, estimating the compensation therefor in money, performed.