Add script to calculate chain swap percentage

This script is within the directory "tools", which will be used to put
other useful scripts.