Mining calculation in the UI