Math.max(...largeArray) crashes when combinedAdsData has thousands of records. Replaced with a simple for-loop to find the max year safely. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>