add calculation of life time