def METHOD_NAME(n, p):
    """
    Parameters
    ----------
    n: items to store in filter
    p: target false positive rate
    Returns
    -------
    """
    # bit count
    m = math.ceil(-n * math.log(p) / (math.pow(math.log(2), 2)))
    # hash func count
    k = round(m / n * math.log(2))
    if k < consts.MIN_HASH_FUNC_COUNT:
        LOGGER.info(f"computed k value {k} is smaller than min hash func count limit, "
                    f"set to {consts.MIN_HASH_FUNC_COUNT}")
        k = consts.MIN_HASH_FUNC_COUNT
        # update bit count so that target fpr = p
        m = round(-n * k / math.log(1 - math.pow(p, 1 / k)))
    if k > consts.MAX_HASH_FUNC_COUNT:
        LOGGER.info(f"computed k value {k} is greater than max hash func count limit, "
                    f"set to {consts.MAX_HASH_FUNC_COUNT}")
        k = consts.MAX_HASH_FUNC_COUNT
        # update bit count so that target fpr = p
        m = round(-n * k / math.log(1 - math.pow(p, 1 / k)))
    return m, k