def convert_top(t):
    """Converts time of possession string to seconds
    
    Args:
        t (str): e.g. '1:30'

    Returns:
        int: e.g. 90
    """
    try:
        m, s = [int(c) for c in t.split(':')]
        return m * 60 + s
    except (AttributeError, ValueError):
        return 0