Why is the Knox API method setMaximumTimeToLock() not showing the time I configured?

The API method setMaximumTimeToLock() configures the maximum lock screen timeout.

This setting is tied to Settings > Display > Screen timeout.

For example, if you have a display screen timeout set to 5 minutes, and you set the maximum lock screen timeout to 8 minutes and 20 seconds, the maximum lock screen timeout is counted at 3 minutes and 20 seconds. The five minutes from the display screen timeout is subtracted.

This API method is available since MDM 5.0.