got current time and termination time working on both factory and instance service