cleaned up dayNum() a bit