Finished the logic behind the days selection dialog.