I haven’t updated the above linked code for ages, because the one that gets tweaked is the one embedded in my task list. It’s now more efficient, but it’ll take some effort to extract. Doubtless there will be more changes now that they’ve fixed the ‘edict’ feature, in Tinderbox 6.3.1.
My task list is based on @dreev’s priority scheme. I calculate the urgency-adjusted age of each item, and sum the squares of them, as suggested in backlog minding. And of course, I beemind the resulting total.