def even_padding(length: int, window: int) -> int:
    """
    Compute how much to add to `length` such that the resulting value is evenly divisible by `window`.

    Parameters
    ----------
    length : int

    window : int

    Returns
    -------
    int
        Value that, when added to `length`, results in a sum that is evenly divided by `window`
    """
    return (window - (length % window)) % window