calcIndex now asks for row and col.