You can find the source for this script at
https://github.com/yencarnacion/eddystone-url-calculator