reusable calculator for the mini.ca build.