Variable referenced before assignment correction for CURRENT DAY

http://stackoverflow.com/questions/17521410/unboundlocalerror-local-variable-referenced-before-assignment-counter