aah, this is stupid. Instead it should check:
`Math.round(from / granularity)*granularity != Math.round(to /granulariy)*granularity`