Add liquidity on Uniswap V3 programmatically

Hello people

Could yall please help me with integration of Uniswap V3 in a script I am trying to add liquidity, with a specific min and max price

I am using the Uniswap V3 SDK, to get instance of pool, get calldata for minting new position, then sending the calldata to Position Manager in a tx.

This is what I could do, but here minPrice and amount of liquidity are not coming correctly

Incorrect Min Price and Amount of both tokens

reddit imageAdd liquidity on Uniswap V3 programmatically