Kanpur to Agra is actually about 3.5 to 4 hours at easy driving speeds. Agra to Delhi can take between 2.5 to 4 hours depending on traffic and time of day.
Road quality is awesome! Nothing to worry about except the lack of good places to eat between Agra and Kanpur.