Here is a simple calculator to compute variables of Snell's Law.
There are two main options: one is just a straight up calculator, the renpy program draws a picture and asks you for the known values. It then computes the unknown variable for so you can get through your optic homework without working.
You know you want it. Download it here!