When can I determine the sex of swordtails?

The sword is not the best method for sexing, look at the anal fin. Females will have a triangular shaped full anal fin, while the males will lack that and have a stick like fin called a gonopodium. You should be able to sex the fish at 2-3 months easy.
 
AquariaCentral.com