Enter your username and password below to login. Forgotten your password? Click the link below to reset it.

By: Alexander Schneider | Asked: 01/13/2023

Hello,

I'd like to know if it is possible to create this calculator for 3D-printing.

I have, in fact, a multi-step calculation.

The first step is to calculate the volume (cubature) of the product (shape) in cubic santimeters (V). Depending on the chosen shape (bar, cone, cylinder), field groups are opened with measurement fields for the corresponding shape (for a хarallelepiped - length, width, height; for a cone - height and radius of the base etc). The volume of the product itself does not participate in the cost, of course.

In the next step, the material is selected and a multiplier factor is set, depending on the volume previously calculated. For example, for material No.1:

If V < 50, then K1 = 25

if 51 < V < 100, then K1 = 15

If 101 < V < 500, then K1 = 12

For material #2:

If V < 50, then K1 = 35

if 51 < V < 100 then K1 = 25

if 101 < V < 500 then K1 = 22

etc.

The third step is to select the "urgency" parameter, which sets the K2 coefficient. By default, urgency is not selected and K2 = 1. If urgency = 1, then K2 = 2

Cost = V * K1 * K2.

How feasible is it to implement such a formula with your calculator?

I'd like to know if it is possible to create this calculator for 3D-printing.

I have, in fact, a multi-step calculation.

The first step is to calculate the volume (cubature) of the product (shape) in cubic santimeters (V). Depending on the chosen shape (bar, cone, cylinder), field groups are opened with measurement fields for the corresponding shape (for a хarallelepiped - length, width, height; for a cone - height and radius of the base etc). The volume of the product itself does not participate in the cost, of course.

In the next step, the material is selected and a multiplier factor is set, depending on the volume previously calculated. For example, for material No.1:

If V < 50, then K1 = 25

if 51 < V < 100, then K1 = 15

If 101 < V < 500, then K1 = 12

For material #2:

If V < 50, then K1 = 35

if 51 < V < 100 then K1 = 25

if 101 < V < 500 then K1 = 22

etc.

The third step is to select the "urgency" parameter, which sets the K2 coefficient. By default, urgency is not selected and K2 = 1. If urgency = 1, then K2 = 2

Cost = V * K1 * K2.

How feasible is it to implement such a formula with your calculator?

1 Answers

Complex calculations aren't an issue, but sometimes you need custom code to execute the formulas. I've coded some very complex future value formulas for a dynamic ChartJS graph driven by Formidable data and configuration tables. Any formula that can be coded to produce an accurate result can be used with Formidable. Whether to use jQuery, PHP, or a combination of both depends on your requirements, which aren't clear from your post.

I saw in the Facebook Group where you solved the problem in the default value field. In case you need the results rounded, use the frm-math shortcode to implement math functions. See this Formidable Knowledgebase article: https://formidableforms.com/knowledgebase/math-calculations/#kb-where-can-the-math-functions-be-used/

One more thing, if you want to number rounding in the browser, please see this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat

Please login or Register to submit your answer

- Answer at Dynamic Field limit entries by current user option not working
- Answer at Some Forms not loading for logged in user
- Answer at Forms with conditional logic are not loading
- Answer at How to make a subscription for "basic" and "featured" options
- Answer at Forms with conditional logic are not loading

- Plugins That Rock! asked by Chris Adams
- File Upload not working asked by John Perrelli
- Automatically jump to form's next step when selecting radio button option asked by Sergio Giannone
- Dynamically update min and max values of input type range asked by Emmanuel GADEK
- Adding a URL to View post content section asked by Gerry Bolger

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!

Join the community