compute fan speed within fan_min and fan_max