Besides the rays of reflection, we can also see a refracted ray passes through the medium(glass) and a angle of refraction. Of cource, reflection is also occurs but it is just weaker.
Refractive index
That is the equation used for calculating refractive index of a medium which light is come from air to medium or medium to air.
That is the equation used for calculating refractive index of a medium which light is come from medium 1 to medium 2.