In the siddur
Nishmas is said on Shabbos and Yom Tov at the end of Pesukei D'Zimra, and on Pesach night at the end of Hallel in the Haggadah. The Gemara calls it birkas hashir, the blessing of song.
Forty days for a yeshua
A custom many women keep is to say Nishmas for forty consecutive days, asking for a yeshua, a shidduch or children, and some make a gathering to say it together in thanks after the salvation comes. It is a custom, not an obligation.
Questions women ask
What is the Nishmas 40 days segula?
A widespread custom of saying Nishmas Kol Chai each day for forty days when asking for a yeshua. It is a custom and not a halachic obligation.
When is Nishmas said in davening?
On Shabbos and Yom Tov, after Pesukei D'Zimra, and on Pesach night in the Haggadah.
Sources
This page explains common practice from mainstream sources. For a halachic question about your own situation, ask your Rav.