def expectedDrainSeconds(deferredImages, timeTracker):
    """Calculate the expected time to drain the deferred images queue

    Args:
        deferredImages (list): list of deferred images
        timeTracker (dict): tracks recent image processing times

    Returns:
        Seconds to process deferred images
    """
    return len(deferredImages)*timeTracker['timePerSample']