refactor merchant revenue by date