The court shall award interest in the judgment as prayed for or as provided by law.