when do babies sleep longer without formula

Se

when do babies sleep longer without formula? My LO is 3 months and still eats at least 2 times a night, wondering when they stop doing that?