Equation for finding points needed to tie