Damages may be awarded in a judicial proceeding for detriment resulting after the commencement thereof or certain to result in the future.