I use Numerals(1) in Obsidian for this, and it works great. It's built on mathjs(2) and has things like @total functions which automatically sum all uninterrupted lines above it.
It doesn't hurt to list alternative products, right? Understanding the competition and lacking features. Mine isn't the only post in this thread mentioning other products that do roughly the same thing.