I want to have a sentence like this:
In addition, to efficiently calculate f(t) after adding an item x at position p, where there are q relevant items before, we can use Eq. 3.
Is this grammatically correct? What better phrase can I use instead of "where there are q relevant items before"