private double getCustomHeight() {
        try {
            final String heightText = heightBox.getText().replace("cm", "");
            return Double.parseDouble(heightText);
        } catch (NumberFormatException e) {