fixed after hours logic