Depends on what Country and/or State you are residing on but according to the Crimes Act 1958: Child Destruction or the crime of killing a fetus "capable of being born alive" before it has "a separate existence" falls after 24 weeks' of gestation which is about 6 months.
It used to be 28 weeks' of gestation which is about 7 months which I think some country still holds.