Functions to calculate durations for conversation data

Note that there are issues with the duration data that still have to be
worked out.