A small tool for photonics-related calculation