I agree with snod08- you should look through some of the older threads. I think that visa-free transit is allowed only if the time in India is less than 4 hours. While I don't think you will have a problem (even though your time in India is close to 5 hours), I think you should take a look at older threads and double check the Indian embassy website.