Fix playback duration calculation