For me it’s basically a question of whether it was something on “autopilot” or intentional. Same with meds I always struggle with whether I locked the front door. I always do but never can remember.
As a side note you can buy “pill timer” bottles on amazon with a clock counter since they were last opened if you want a quick solution to this instead of the hacking fun. But beware most of the brands and models aren’t child safe.