Arduino timer to turn a serve at a certain time
in setup you are calling

pinMode(b, INPUT);
pinMode(up, INPUT);
pinMode(down, INPUT);


but b, up and down all equal 0 so this is what you are doing is :

pinMode(0, INPUT)
pinMode(0, INPUT)
pinMode(0, INPUT)


This doesn't do what you want at all, these need to be assigned to pins. All you are doing is repeatedly setting arduino digital pin 0 to INPUT 3 times.

secondly

while(b == HIGH)


will never fire since b is 0 and is never set to anything else. so it will never == HIGH

Finally,

digitalRead(down);


doesn't do anything useful; what it does is read from pin down which is set to 0, and then drops the return value on the floor

also, this,

if (up == HIGH, down == LOW)


is just very wrong, sholud be

if (up == HIGH &amp;&amp; down == LOW)


anyway based on you scematic, fixing this code:

#include &lt;Servo.h&gt;
#include &lt;LiquidCrystal.h&gt;

const int B = 7;
const int UP = 8;
const int DOWN = 9;
int val = 100;

LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

Servo myservo; 

int pos = 0;    

void setup() 
{
  pinMode(B, INPUT);
  pinMode(UP, INPUT);
  pinMode(DOWN, INPUT);
  lcd.begin(16, 2);
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
  lcd.setCursor(0, 0);
  lcd.print("milli seconds:");
}

void loop() 
{
  // todo: debounce the switches
  int up = digitalRead(UP);
  int down = digitalRead(DOWN);
  int b = digitalRead(B);  

  if (up == HIGH &amp;&amp; down == LOW)
  {
     val += 1  // todo: handle overflow
  }

  if (down == HIGH &amp;&amp; up == LOW )
  {
     val -= 1
  }

  lcd.setCursor(0, 1);
  lcd.print(val);

  if(b == HIGH)
  {
    myservo.write(0);
    delay(val);
    myservo.write(100);
    delay(val);      
  }

}


this will do what the origonal code was trying to do, more or less, but the 
proper way to do this would be (in psuedo-code):

// Setup pins etc.
// Setup(): pinMode(...) ... etc.
// Loop():
//   debounce buttons
//   handle up/down
//   record milliseconds when button is pressed
//   see how much time has passed
//   trigger servo when timer has passed