We would recommend staying in Lisbon for three or four days. This will give you enough time to visit the main sights and some museums whilst still having enough time to go on a day trip to Sintra.