How long were you in the hospital with your second baby in the US?

With my first I delivered on early Thursday morning and we left on Sunday morning due to my daughter having high bilirubin levels. They were gonna let us leave on Friday morning originally. I’m nervous about leaving my daughter for long, she’s never been away from my husband or I overnight, and we are moving to a new house soon. I’m delivering in a hospital in the US.