Using a 3rd party platform for a mobile app we are restricted to HTML/CSS only. We need a very simple calculator that is only used to display info back to a user - no processing is done. I'm using some JavaScript directly in the onsubmit to accomplish this. Ugly, but satisfies this specific use case.
A Pen by Chris Rockwell on CodePen.