How Eratosthenes calculated the Earth’s circumference more than 2k years ago?

In 240 BC, the Greek astronomer, geographer, mathematician, music theorist, and librarian Eratosthenes of Cyrene (c. 276 BC – c. 195/194 BC) calculated the circumference of the Earth without even leaving Egypt. Here’s how: