Extract calculations for lone and nested specs