There are 3 main border crossings for you to choose from
I29 Grand Forks to Winnipeg
US52 Portal in western North Dakota
I15 Sweetgrass in Montana
Google Maps gives time estimates of 26, 25, 27 hrs respectively, times roughly matching the distances. I was going to say the average highway speeds on the Montana route would be faster due to more freeway - but the shortest way from I94 in the east to I15 at Great Falls is MT200.
The total time will depend more on how long you spend at the overnight stops, than on the actual driving distance and time.