Calculation functions for Transparency Toolkit.