May has 31 days. and April has 30. Same behavior is manifested when using any two months which follow one another and in which one has one day more then the other.
I'm using InMonthToDate function in a dashboard chart which compares this months sales to the previous months. When today's date becomes 31. graph is empty because quantity is always multiplied by 0.