def sfdr(iip3=0, mds=0):
    """
    Calculate SFDR from IIP3 and mds.

    :param iip3: Input-referred 3rd-order intercept point in dBm.
    :param mds: Minimum detectable signal in dBm.
    """
    return 2 / 3 * (iip3 - mds)