About 4 weeks, can be longer, they seem to be able to hold onto them.
With guppies and swords there is a dark area (gravid spot) that appears just above the anal fin when they are carrying fry. This area increases and darkens, sometimes in lighter coloured fish you can see the eyes of the fry.