Covariate effect on the life expectancy and percentile residual life functions under the proportional hazards and the accelerated life models