They could reason about the Pythagorean theorem in 2000 BC. It's not a surprise they could figure out when the sun set in 2800 BC.