key 5 sets duration in menu-how to arrange time sequence?

My system have 4 buttons keypad, LCD, 5 relays, Mega2560
I use MENWIZ to input 5 sets duration controlling relays.
The activity is that when power is ON, 5 relays are all ON.
5 sets' duration of OFF depend on keypad input by operator.
So i don't know which duration is long or short.
I have faced the problem of time sequence.
Is there any good idea to hint me?

Best Regards

Is there any good idea to hint me?

My crystal ball says that you need to fix lines 38, 468, and postyourcode. Hmmm, that last one really doesn't look like a line number. Oh, well, perhaps something will occur to you anyway.