add time delay in calculating total