logic to find eve and morning sessions done