There is around 160 km between Egeskov Castle and Copenhagen. If you use train your trip will last around 3 hours (Via Odense). Also, there is no direct bus line to Egeskov castle. It goes via Nyborg station and it takes 3-4 hours. Using a car (less than 2 hours) might be the best solution.