how were the ancient Egyptians’ advancements in the fields of mathematics helpful to farmers?

Egypt has multiple times where famine may come, so their fields of astronomy and mathematics help them calculate when to plant their harvest and then to collect them before drought or locusts come and wipe out the entire crop. Hope this helps.