there is an issue on datetime functin. It works fine on data with 10 rows. I just tried the function to data that has over 1000 rows. It has been 10 mins since I ran the function.. still running. 