x: Break out calculation into a function to allow multiple $[...] expressions
x: Retain the last calc result before tagging it with the expression