Helper module to determine if input is within range of target