Normally you go something like..
1000 * 60 * 60 * 24 * 7
1000 milliseconds = 1 second
1000 * 60 = 60 seconds (1 minute)
1000 * 60 * 60 = 60 minutes (1 hour)
1000 * 60 * 60 * 24 = 24 hours (1 day)
1000 * 60 * 60 * 24 * 7 = 7 days (1 week)
Of course you could go further, but I think that should be enough for anyone.
I think over-all they meant it to be 1 second, but didn't realize it starts in milliseconds.
If you change their numbers to accommodate seconds, it is a 4 hour timer.
Code:
setPlayerStorageValue(cid, 22334, os.time() + 1*60*60*4) -- 14.4 seconds (14,400 milliseconds)
setPlayerStorageValue(cid, 22334, os.time() + 1000 * 60 * 60 * 4) -- 4 hours (14,400,000 milliseconds)