When did you tell child about rainbow after 2nd trimester loss?

Jessica

I had a stillborn at 22 weeks august 2020 (my daughter didn’t really understand back then). She is 4 now and I am due November 9th (currently 18 weeks). I don’t know when to tell her! But I also don’t want anyone else to give it away either! When did you tell your child after a loss?