double odometerWidth(double height, int digits, int decimals) { double digitWidth = (height * 0.68).floorToDouble(); double width = digitWidth * (digits + decimals); return width; }