Excel already knows when the month ends.
There might be some numbers you're missing when summing it up.