A privacy friendly calculator for complex functions