Implemented the CONTEXT-TIME function