def METHOD_NAME(charge: Charge):
    charge_eligibility = charge.expungement_result.charge_eligibility
    if charge_eligibility and charge_eligibility.date_to_sort_label_by:
        return charge_eligibility.date_to_sort_label_by
    else:
        return date.max()