Use "..." range syntax to exclude the last value

X..Y-1 ->
X...Y