Don't use slow moment.dayOfYear

For some reason that method was taking up a large chunk of the cpu time