It really depends on your priorities, but you can spend one day in San Juan up to a whole week in San Juan. If you love cities and want to dive in, consider spending 3 or 4 days in San Juan and then the rest of your time in Luquillo on the east side of the island or perhaps Rincon (2 hours west).