Parties may agree in writing for the payment of compound interest.