How is "Strongest Units and Items:" on battle results screen calculated?

I am lvl 142 and have 500 allies and my units, weapons and armor are all maxed out at 1500 but I have Strongest Units and Items:4191

I look at my opponent and they have Strongest Units and Items:4500

Thanks for any info