Calculation functions for contact centers in Python (for use in Pythonista)