def METHOD_NAME(sqrtA, sqrtB, liquidity, roundUp=False):
    # https://github.com/Uniswap/v3-sdk/blob/12f3b7033bd70210a4f117b477cdaec027a436f6/src/utils/sqrtPriceMath.ts#L38-L46
    if sqrtA > sqrtB:
        sqrtA, sqrtB = sqrtB, sqrtA
    numerator = liquidity * (sqrtB - sqrtA)
    denominator = Q96
    return ceil(numerator / denominator) if roundUp else numerator / denominator