Crying in Crib

How long do you let your baby cry in their crib when trying to get them to sleep before you pick them up?

*Edit: I am aware that when a baby cries they need you. I don’t let my baby CIO. I am just asking because I know sometimes they will go back to sleep. People make it seem like you are the worst person if your baby cries for one second.