@Magical Jelly
Please let us know which ambari version are you using?
There seems to be some issue reported for Ambari 2.6 and prior version of Ambari Widgets where the Widget formula contained "Subtract" operator.
Something similar you can find here: https://issues.apache.org/jira/browse/AMBARI-23309
Code Changes: https://github.com/apache/ambari/pull/738/files
So if you can make the same changes as mentioned in the Pull request inside the
"/usr/lib/ambari-server/web/javascripts/app.js" (after taking a backup of this file) then it should start working after hard reset of browser.
.
Or try the same in Ambari 2.7.0 or later and then see if it works.