Update of the exit condition of outer for-loop in ch.qos.logback.core.rolling.helper.TimeBasedArchiveRemover#capTotalSize should resolve the problem:
for (int offset = 0; offset <= maxHistory; offset++) {
instead of
for (int offset = 0; offset < maxHistory; offset++) {