It depends where you live. Some countries it is illegal as they see any abortion as murder. It used to be 28 weeks as they say the baby has its own heart beat now but has since changed to 24 weeks.
Personally I think if it is required the earlier the better as it is a living human but circumstances may require an abortion so I am for it.