With VHF a handy formula is miles = 1.25sqrt(feet)
So 25000ft gives a range of ~190 miles, 40000ft gives ~240 miles.
So 25000ft gives a range of ~190 miles, 40000ft gives ~240 miles.
I should've put "VHF/UHF" in the original comment as the formula is reasonable for both. They're both Line of Sight and that's really what the approximation is about.