Some time rule refactoring