Somehow I figured out a way to do this when I got my phone but I cant find out a way to change it again.
I would like to change how long my phone is idle before it automatically locks itself and I just need to find where the option to change that setting is.