Ah so it must only decrease when you open your wiki, not according to the current date ?
Then you could use a startup action :
Add the tag $:/tags/StartupAction
In a tiddler with this content :
<$list filter="[[$:/mementomori]get[today]!match<now 0DD0MMYYYY>]">
<$action-listops $field="countdown" $subfilter="subtract[1]"/>
<$action-setfield today=<<now 0DD0MMYYYY>> />
</$list>
Create a field “countdown” in the tiddler $:/mementomori and set it to the starting number you want.
Then you can get the countdown value with {{$:/mementomori!!countdown}} , it should decrease by one every new day you open your wiki.
EDIT: not tested yet
Okay there is a small error, let me fix that
EDIT2: Warning ! I bricked my wiki with this, no idea why. DO NOT USE THIS - I try to figure out what happened
Okay, I think this is because some variable are not set at startup time. This work (do a backup before to be safe) :
\import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]
<$action-setfield
$tiddler="$:/mementomori"
countdown={{{[[$:/mementomori]get[today]!match<now 0DD0MMYYYY>]+[[$:/mementomori]get[countdown]add[-1]else[1000]]}}}
/>
<$action-setfield
$tiddler="$:/mementomori"
today=<<now 0DD0MMYYYY>>
/>