Two days in Petra would be great; THREE would be even better. Petra is a full day trip from Aqaba; you will walk miles. The next day you can see Wadi Rum. A full day 4x4 would be fantastic following the steps of Lawrence of Arabia. A third day, you could see Mt Nevo and Madaba or just take advantage of beach and duty free shopping in Aqaba.