def get_el_feedin_tariff_chp(q_nom, el_feedin_epex=0.02978, vnn=0.01):
    """
    Calculates feed-in tariff for CHP-produced electricity.

    Parameters
    ----------
    q_nom : nominal thermal power of chp in kW
    el_feedin_epex : epex price for electricity in Euro/kWh
    vnn : avoided grid charges ("vermiedenes Netznutzungsentgelt") in Euro/kWh

    Returns
    -------
    feed-in tariff in EUR/kWh
    """

    # KWKG 2016 revenues for el. feed-in + feedin price from epex + avoided grid charges
    if q_nom < 50:
        return 0.08+el_feedin_epex+vnn  # Euro/kWh, only paid for 60.000 flh
    elif 50 <= q_nom < 100:
        return 0.06+el_feedin_epex+vnn  # Euro/kWh, only paid for 30.000 flh
    elif 100 <= q_nom < 250:
        return 0.05+el_feedin_epex+vnn  # Euro/kWh, only paid for 30.000 flh
    elif 250 <= q_nom < 2000:
        return 0.044+el_feedin_epex+vnn  # Euro/kWh, only paid for 30.000 flh
    else:  # q_nom > 2000:
        return 0.031+el_feedin_epex+vnn