How many miles are there between Panama and Scotland?

Edinburgh to Panama City is 5184 miles or 8343km.