[Refactor] made Task#get next due date more readable