I made a formula for pre-determining an edit's match length