def METHOD_NAME(domain_name):
    current_subscription = Subscription.get_active_subscription_by_domain(domain_name)
    if current_subscription and is_subscription_eligible_for_downgrade_process(current_subscription):
        overdue_invoice, _ = get_oldest_unpaid_invoice_over_threshold(date.today(), domain_name)
        return overdue_invoice