miscarriage and friend dilemma

My friend and I happened to get pregnant at the same time. She shared this with me when she thought she was having a miscarriage. I didn't say anything because I wanted to wait a week to be sure I had a positive test result and I'd had some bleeding myself but not as much as she talked about. She told me today she's miscarried and She's devastated. I feel so sad for her. She was was 4.or.5 weeks but she's still very upset and has been ttc for way longer than me. I took another test today and I'm definitely pregnant. 5 weeks 2 days. How can I tell my friend that I am Pregnant now. That my due date is the same as her lost baby. That I knew all along whilst I helped her through messages about her own misscarriage. I was worried about telling her before I knew this, because it would make her feel rotten she hadn't conceived yet. Now it's even worse. Telling. Her will be like rubbing salt in the wound. How long should I wait. Any advice you can give? My worries aboutt this mean I can't even feel excited for me. I kinda wished she got positive and I am still ttc. It's not fair.