calculate sink position