protected Date compute(double value){
  if (Double.isNaN(value)) {
    return null;
  }
  long dateLong=(long)value;
  Date date=new Date(dateLong);
  Calendar cal=Calendar.getInstance();
  cal.setTime(date);
  return cal.getTime();
}

protected Date compute ( double value ) { if ( Double . isNaN ( value ) ) { return null ; } long dateLong = ( long ) value ; Date date = new Date ( dateLong ) ; Calendar cal = Calendar . getInstance ( ) ; cal . setTime ( date ) ; return cal . getTime ( ) ; }
computes the result for one input double value .
