def METHOD_NAME(P, f0, Ql, Qi):
    '''
    Calculates n_bar for hangers form the power in the feedline
    '''
    Pin = 10**(P/10.)*1e-3
    Pres = (1-(1.*Ql/Qi)**2)*Pin
    print(Pres)
    n_in = Pres/(h*f0)/(f0/Ql)
    return n_in