from typing import Tuple


def get_interval_length(interval: Tuple[int, int]) -> int:
    """Retrieves the length of an interval in seconds"""
    if interval[1] <= interval[0]:
        raise ValueError("Invalid interval: {:s}".format(str(interval)))
    return interval[1] - interval[0]