add remainingTimeFromDate method