def _next_epoch(val):
    """Find the next number above the existing value that ends in 1, that is
    not consecutive with the current value."""
    if val % 100 == 99:
        return val + 2
    elif val % 100 == 0:
        return val + 101
    else:
        rem = val % 100
        return val - rem + 101