Calculate function tuning