In a petition for writ of mandamus seeking retroactive disability retirement benefits, the trial court's judgment, granting the petition and award of Civil Code section 3287(a) prejudgment interest on the retroactive benefits, is reversed where the trial court erred by awarding prejudgment interest on retroactive disability benefits before payments of those benefits were due and before his right to recover those payments became vested under section 3287(a).