Gripe water , get her a second opinion doctor just to rule out she doesn’t have any stomach problems but breastfed baby go without like that. Formula may need to be changed due to baby not getting enough fiber
Might need to switch formulas.
Breastfed babies that young can go a week without pooping and it is normal (according to our pediatrician at the time). I don't know about formula fed babies. What would concern me is the pain they are experiencing. I second getting another opinion. Could also be gas? Good luck!
Da
My son had really bad constipation when he was younger and his doctor prescribed miralax that I mixed in his bottles daily. It helped a lot. I’d get an appointment set up or see a different doc if they aren’t taking your concerns serious
If she’s in pain then you might need to switch formulas. You can also try probiotic drops.