You need to know the periapsis velocity of the Moon-centered hyperbolic trajectory [math]V_{h_{pe}} [/math] and then subtract the velocity of the parking orbit.
The [math]V_{h_{pe}} [/math] depends on two things; the periselene altitude and the encounter velocity with the Moon. It is given by this equation:
[math]V_{h_{pe}}=\sqrt{V_{enc}^2+V_{esc}^2} [/math] where,
[math]V_{enc}[/math] is the encounter velocity with the Moon
[math]V_{esc}[/math] is the local escape velocity, given by [math]V_{esc}=\sqrt{\frac{2GM_{Moon}}{R_{Moon}+alt}}[/math] where,
[math] M_{Moon} [/math] is the Moon's mass
[math] R_{Moon} [/math] is the Moon's radius
and [math]alt[/math] is the altitude of the periselene.
The [math]V_{enc}[/math] depends on the velocity of the spacecraft at arrival on the Moon's orbital distance from Earth and the flight-path angle φ.
[math]V_{enc} = \sqrt{V_{s}^2+V_{Moon}^2-2V_{s}V_{Moon}cos\phi}[/math] where,
[math]V_{s}[/math] is the velocity of the spacecraft at arrival on the Moon's orbital distance
[math]V_{Moon}[/math] is the Moon's orbital velocity and
φ is the flight-path angle at the intercept point.
For a perfect Hohmann transfer where φ=0° the encounter velocity is simply the Moon's orbital velocity minus the spacecraft's velocity at the apogee of the transfer trajectory: [math] V_{enc} = V_{Moon} -V_{s}[/math] (assuming coplanar orbits).
Now you have everything you need to calculate the Delta-V for the LOI burn:
[math] \Delta V_{LOI} = V_{h_{pe}}-V_{po} [/math] where,
[math] \Delta V_{LOI} [/math] is the LOI burn Delta-V
[math] V_{h_{pe}} [/math] is the hyperbolic trajectory's velocity at periselene
[math] V_{po} [/math] is the orbital velocity of the parking orbit. (Assuming a circular orbit).
The velocity of the parking orbit is given by:
[math] V_{po}=\sqrt{\frac{GM_{Moon}}{R_{Moon}+alt}} [/math] where,
[math] M_{Moon} [/math] is the Moon's mass
[math] R_{Moon} [/math] is the Moon's radius
and [math]alt[/math] is the altitude of the periselene. If you have already calculated the escape velocity for the periselene then it is simply [math]V_{po}=\frac{V_{esc}}{\sqrt{2}}[/math]
For more info have a look
here.