I've just been informed that our code hasn't been working today.. My fault, it seems that choosing the 31st as the end date meant it stopped at the end of the 30th day.
I've sorted the error and extended it to include tomorrow as well!
Apologies to anyone who couldn't get it to work today.