Added code for getting applications per day