Depends on the day of arrival/departure and are you checking luggage and do you have global entry...

We have done DCA SJU EIS and back 2x in the last 6 months and have never been longer than 30 minutes at SJU

we typically fly back Monday or Tuesday. You do have USDA check before going through security which isnt long unless you forget and wait in the security line and then have to go back and do

flight out of SJU to DCA was delayed 3 and 4 hours in 2021