Update calculate datetime diff