Elapsed event time using RTC

delay(2000); //--(Time delay-20000 is about 5 seconds)

That is 2 seconds, not 20, and not 5.