[feat] add function for calculating actual time between two timestamps