Abortion laws are based are 2 concepts, viability, and personhood. If it can survive outside the womb, it can't be aborted. If it has a fully functioning brain, it can't be aborted.
Babies can and have survived at 21 weeks, and the babies brain is not considered fully functioning until 25 weeks.
The youngest baby to survive was 21 weeks and 6 days.