U.S Medical Insurance project

I keep getting the wrong calculation with this formula:
insurance_cost = 250 * age - 128 * sex + 370 * bmi + 425 * num_of_children + 24000 * smoker - 12500

Instead of 5469, i get twice that value… Need assistance

Could you please link the project, it might also be worth viewing the following FAQ for more general guidance on setting up questions such as formatting code- How to ask good questions (and get good answers).

Is this on the DS path? (Medical Costs Syntax?)

What are your variables set to above the calculation? Perhaps something is amiss there.

1 Like

Got it, didn’t check my variables properly. Thanks