fix jiffy calculations in calibrate_delay_direct to handle overflow