lib/rateLimiter/lib/rateLimiter.js
function (range) {
        var coeff = 1000 * 60 * range;
        return new Date(Math.ceil(new Date(Date.now()).getTime() / coeff) * coeff).getTime() / 1000;
    }
function (range) {
        var coeff = 1000 * 60 * range;
        return new Date(Math.ceil(new Date(Date.now()).getTime() / coeff) * coeff).getTime() / 1000;
    }
function ( range ) { var coeff = 1000 * 60 * range ; return new Date ( Math . ceil ( new Date ( Date . now ( ) ) . getTime ( ) / coeff ) * coeff ) . getTime ( ) / 1000 ; }
Calculate current time interval slot
Calculate current time interval slot