My baby is constipated

Rose • Milani’s Mommy💗

My baby was breastfed for about two weeks and then I put her on formula. She wasn’t pooping much to begin with but when they did they were soft. Now her poops are very hard and solid instead of mushy( tmi idk lol). She’s been on formula for maybe 3-4 days now. Should I switch the formula or wait it out? She seems like she’s in pain. She’s super gassy and her poor face gets red when she pushes out her poop. This is the formula she’s on