https://resources.physicsteachingpodcast.com/2020/03/19/refraction-the-role-of-time-and-snells-law/
Refraction, the Role of Time, and Snell's law