calculate and store inter-char durations