updated getDay function using a dict comprehension and eval in the call