Computation of retirement benefits