make integer of timediff