Result of math calculation

I would like to insert the result of a math calculation directly into a block. For example, I would like to be able to make a block that displays something like Total = 47*3 + 64 + 5 = 210, but 210 would be calculated. Is this already possible and easy? I suspect it is, since JS is technically available. Is there a way to insert the result of a JS calculation?