How many miles is it from North Dakota to Minnesota?

Zero miles. The two states share a common border.