finds the time that must be entered for start up
minor changes