You can tell as soon as they are born. Gently lift up on the tail with the rear end facing you. If you see a gap between the anus and the urethral cone, it's a boy. No gap, it's a girl. For future reference, do not use kitten or puppy formula for chinchillas, use goat's milk.