Reformatted the code that handles the calculation of working days in a given range.
Added some conditionals to the code that fetches entries from the DB, so we don't fetch the current day.