How long can a formula fed baby go without pooping?

How long can a formula fed baby go without pooping? We are on day 2 of our little one not pooping. Little one is happy as can be and doesn't seem uncomfortable or in pain. Still having plenty of wet diapers. Wondering how many days I should wait before calling the pediatrician.