I'm not sure if you need this... the logic is basically evens are 31 and odds are 30, unless it's the second month.