Avoid off-by-one errors in column C-n/C-p calculations