Excel already knows when the month ends.
Don't underestimate the value of this function.