Make duration difference an absolute value so threshold check always works