calculate life value