A minimum of 9 hours. It leaves London at 11am and reaches Hogwarts just after sunset, which would be at about 8:15pm in the Highlands on 1st September. It might be slightly earlier at Hogwarts because it's surrounded by mountains, but even so it's no earlier than 8pm when they arrive.