Add bounding box calculation and other function in calculations.py

Not a useful docstring.