Equation To See When Two Functions Intersect