If you really want to invest into this° , I'd suggest just permanently storing the result of the numdays dialog˛ into the "lastChecked or so" -field
because for a real undo you'd need a new field in the DB.
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
°) for training purposes sounds OK