The plane surface formula is n1⋅sin(θ1) = n2⋅sin(θ2), where n1 is the refractive index of the medium that the incident light is coming from, n2 is the refractive index of the opposite medium, θ1 is the angle between the incident light and the normal of the boundary, and θ2 is the angle of refraction.