Hi, @xmkhan. You are in the right neighborhood. My recent response to another question may help out with the intuition.
Let me know if it helps!