I see in the paraswap app, when we change the price/token, the price impact show immediately in the UI  How could I calculate this value?
I see in the paraswap app, when we change the price/token, the price impact show immediately in the UI

How could I calculate this value?