How long does a baby have sepsis before they die from it?

Depends. This depends on many factors - what bug, how strong is the immune system, how quicky treatment was started, how many organs are involved, etc. Sometimes even severe cases of sepsis can be treated successfully with complete recovery. Other times we are not as lucky.
Very quickly. This can be a matter of hours! appropriate treatment is crucial.