Cats don't "worm"; you're likely asking about deworming:
* Kittens: 2, 4, 6, 8 weeks, then every 2-3 months until 6 months.
* Adult Cats: At least once a year, more if outdoors.
* Pregnant/Nursing: Before breeding and during pregnancy.
* Symptoms: Diarrhea, vomiting, weight loss, dull coat.
Consult your vet for specific advice and follow instructions.