When you first go through the loop, MONTH=0.

(We don't add the MONTH correction until you're out of the loop.)