use time diff to calc the timespan