public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { if (value is int) { double toConvert = (int)value; return(AbstractController.mapValues(toConvert, 4300, 5000, 0, 100)); } return(0); }