private void calculate() {
        
        if(model == null) return;
        
        Double factor = jTextFieldFactor.getText().equals("") ? 0.0 : Double.parseDouble(jTextFieldFactor.getText());
        Double fieldA = jTextFieldA.getText().equals("") ? 0.0 : Double.parseDouble(jTextFieldA.getText());
        Double fieldB = jTextFieldB.getText().equals("") ? 0.0 : Double.parseDouble(jTextFieldB.getText());
        Double partPrice = jTextFieldPartPrice.getText().equals("") ? 0.0 : Double.parseDouble(jTextFieldPartPrice.getText());
        
        Map<String, Number> parameters = new HashMap<>();
        parameters.put("factor", factor);
        parameters.put("fieldA", fieldA);
        parameters.put("fieldB", fieldB);
        parameters.put("partPrice", partPrice);
        Integer select = null;
        if(jRadioButtonStandart.isSelected()) {
            select = 0;
        } else if (jRadioButtonStandart2.isSelected()) {
            select = 1;
        } else if (jRadioButtonPositionA.isSelected()) {
            select = 2;
        } else if (jRadioButtonGreatPositionA.isSelected()) {
            select = 3;
        } else {
            select = 4;
        }
        parameters.put("select", select);
        
        model.calculate(parameters);
        fillResume();
    }