Question: what is the formula for lateral displacement?
Answer: lateral shift=t i (1-r/i). Now, according to Snell's law n2/n1=sin i/ sin r ~ i/r. ( n1 and n2 are refractive indices of medium 1 and 2 respectively.) This formula gives all the facts mentioned by Pragya.