The appropriate timing for neonatal surgery depends on various factors, including the complexity of congenital malformations, age, weight, overall development, and nutritional status. Generally, it is recommended to perform simple congenital heart surgery between the ages of 1 and 5.