1. By default, it's set to 3 attempts. If you are performing local authentication, then you can configure your router:
aaa authentication attempts <#>
If you are utilizing a AAA server, then configure it there.
2. Length of logout can't be controlled locally. If you are using a AAA server, then it will be AAA server dependent.
HTH
Jeff