Finished refactoring getting substitutions for a given day.