from datetime import datetime


def time_left(expire_date):
    """Return remaining days before feature expiration or 0 if expired."""
    today_dt = datetime.today()
    expire_dt = datetime.strptime(expire_date, "%d-%b-%Y")
    
    # Calculate remaining days before expiration
    days_left_td = expire_dt - today_dt
    days_left = days_left_td.days
    if days_left <= 0:
        days_left = 0
        
    return days_left