arduino mega sonar and relay problem

Amakrok:
I keep having the routine get stuck in a loop at end of ELSE IF statement.

Because delay (432000000); is 120 hours and delay (3600000); is one hour

Your routine was not stuck, it do what you have instructed.