My piece of advice: 2 days on Madrid and 2 days on Barcelona (though you may stary 4 days on each if you are going to visit the places surrounding them).
There are lots of things to do and lots of places to visit
Try the south of Spain (Córdoba, Granada, Sevilla), or perhaps the north (Galicia, Asturias, País Vasco).
Search for this regions
Fernando