PyRevit includes a built-in calculator in the search bar. You can quickly do math without leaving Revit.

You can force settings via the pyRevit_config.yaml file located in the Roaming folder.