Introduced linear interpolation to calculate sample from the timing error