def f_to_d(f, s):
    """
    Converts frequency bins to distance bins based on ADC settings.
    
    :param f: Frequency bins
    :param s: Settings dictionary
    :return: Distance bins
    """
    return s['c'] * f / (2 * (s['bw'] / s['t_sweep']))
