As the god of sciences, Thoth was the creator of arithmetic, geometry, astronomy, and medicine and was credited with inventing the 365-day calendar.