2014/10/11 add function
Compute RUL