Add bounding box calculation and other function in calculations.py

Any reason to have private functions?