def METHOD_NAME(**kwargs):
    """
    Gets the ratio/density that comes after the date provided.
    This is so we can set the expiry date for the ratio/density
    that we're about to create
    """
    category_id = kwargs.pop('category_id', None)
    compliance_period_id = kwargs.pop('compliance_period_id', None)
    effective_date = kwargs.pop('effective_date')
    fuel_class__fuel_class = kwargs.get('fuel_class__fuel_class', None)
    fuel_class_id = kwargs.get('fuel_class_id', None)
    model_name = kwargs.pop('model_name')
    _update_user = kwargs.pop('update_user', None)
    model = apps.get_model('api', model_name)
    rows = model.objects.filter(
        effective_date__gt=effective_date
    ).exclude(
        expiration_date=F('effective_date')
    )
    if category_id:
        rows = rows.filter(category_id=category_id)
    if compliance_period_id:
        rows = rows.filter(compliance_period_id=compliance_period_id)
    if fuel_class_id:
        rows = rows.filter(fuel_class_id=fuel_class_id)
    if fuel_class__fuel_class:
        rows = rows.filter(fuel_class__fuel_class=fuel_class__fuel_class)
    return rows.order_by('effective_date', '-update_timestamp').first()