refactoring: extract generalized modulo function
refactoring: extract generalized modulo function

Couldn't think of a good name, yet, thus asked at http://math.stackexchange.com/questions/1851903/does-this-modulo-based-function-have-a-name

geometalab/drf-utm-zone-info,geometalab/drf-utm-zone-info