Smart battery life estimation