Added computation to count datetime diff in seconds. Will need further work as single function.