Simplify connected formula