change discrete rule and fix get working days bug