Stochastic properties of two general versions of the residual lifetime at random times