change left days logic