Pretty gross but is this poop normal?

My newborn (4 weeks old) has been pooping like this since we started formula. We started formaula when he was a week and a half old.

He is fussy all the time and won’t sleep. Wondering if his tummy is upset from the formula?