How long does it take to get from buffalo to cape cod?

According to Google Maps: It's about 500 miles or 8 1/2 hours driving time from Buffalo, NY to Cape Cod, Massachusetts.