relay

need help on a project since i am very new to arduino I have 3 input (two digital and one analog) my requirement are
1.if input1(digital) is high activate relay irrespective of other input
2.if input 1 is low and input 2(digital) is high for more than 30s activate relay
3.if input 3 (analog) is less than 2 volt for 30 seconds activate relay

What have you tried ?

Reading Using millis() for timing. A beginners guide, Several things at the same time and looking at the BlinkWithoutDelay example in the IDE is would be a good idea