Simply two relay timer programmer needed :)

AldinT:
I know that but I still can write right program.
I dont know how to use millis().

Well, there's your problem right there.