Neither of those settings does what the original poster wants. The first setting only sets how long after the screen goes dark until the device is locked automatically. The second setting sets how long until the screen goes dark when inactive.
What the original poster wants is how long you have...