4 timed switched relays

hi hope someone can help me out
I need to be able turn 4 timed relays on by 4 separate switches
ie cold water 4 seconds
ie hot water 4seconds
ie shower 3 minute
ie toilet 20 seconds
I have 4 relays 4 push to make switches just need a code
many thanks
Richie

What have you tried so far?
Could just do this:

void loop(){
if digitalRead (coldButton) == LOW){
digitalWrite (coldValve, HIGH);
delay (4000); // dumb 4 second delay
digitalWrite (coldValve, LOW);
// repeat for the other 3, only 1 can run at a time
}

and add the name/pin definitions and the pinMode definitions in setup().