Question: 40 miles how long to walk?
Answer: It will likely take you longer than 11 hours. That's around 4mph, which is actually rather fast; much faster than the average person walks. Maintaining that pace for a full 11 hours will be difficult; especially if that is not your natural pace. I'd recommend doing the distance in 2 days.