create calculator factory

extract common behavior from increases and decreases into a `calculator` factory

- `difference` (sets `$scope.results.difference`)
- `remainder` (sets `$scope.results.remainderTimes`)
- `fancyMath` (sets `$scope.results.multiSts`, `$scope.results.remainderSts`, `$scope.results.multiTimes`)