def timezone_offset(timezone):
    """Given a timezone in format UTC(+/-)<offset>, returns the offset
    (0 is returned if the timezone is simply "UTC").

    ex: timezone_offset("UTC+3") -> 3
    """
    timezone = timezone.strip().lower()
    if timezone=="utc":
        return 0
    else:
        return int(timezone[3:])