For what it is worth - We had plenty of free time on our last layover at SJU so for the heck of it I timed the walk between the furthest gate in Terminal A to the furthest Gate in Terminal D. Walking at a leisurely pace it took me 16 minutes. On my way back to my starting point I walked at a brisk pace and it took about 11 minutes.