I have a question. We currently suppress the reminders if you’ve already entered data for that day. (I think that’s still true but I get such a spammy mess of them that I can’t be sure!) So maybe there’s less need for this script if you just set your remind time to be later in the day?
Note also the relevant discussion of how to revamp reminder settings.