Life calculator