Calculate distance to center of board.