Sounds like a nice heuristic but I don’t think that covers every case—and it’s not an equation. Sorry, wrong answer!!
There is no way for an asteroid and the earth to interact gravitationally to change the asteroid's orbit from what it was coming in. Non-gravitational interactions (like hitting the earth/atmosphere) can do it.
Also, over many interactions and a long time you can have orbital capture in many-body situations, but there is no general equation for this (look up 3 body problem). This is how you get objects accumulating at Lagrange points for example.
TLDR: The equation you're asking for does not exist. Sorry, wrong question!!