Php code that checks the Time limit for the user