The Snell's Law Formula can be used to compute the angle of refraction:
n1sin(╬╕1)=n2sin(╬╕2)
Where,
The first medium of refractive index is n1.
The refractive index of second medium is n2.
╬╕1 be the angle of incidence
╬╕2 be the angle of refraction