Skip to main content

I want to create a simple calculator:
I have these number questions which the user answers:

  • Your Fabric cost (per meter)
  • Number of metres
  • Pattern cost
  • Notion cost 
  • Estimated hours to sew (optional)
  • Hourly rate (only if Estimated hours to sew is greater than 0)

The ending that appears on the screen is:
The cost of your sewing project is: (v_total) with a summery of the costs below
v_total = (Your Fabric cost x Number of metres/yards) + Pattern cost + Notion cost + (Estimated hours to sew x Hourly rate)
All optional questions do not require an answer and if they do not have one, then proceed to the next question. Except if Estimated hours is blank then it skips hourly rate and goes to end.

I have created these custom variables, but not sure how to correctly link them to the number questions. I have had a go with logic branching etc...but don’t seem to have it right.
 


Can someone help me create this in Typeform logic? 
Greatly appreciated, Jane

Hi ​@Jane H Happy Tuesday! I hope you’re having a great week so far!

@john.desborough is definitely your guy when it comes to calculators and variables!


@Jane H - can you please add a screenshot or a loom/video of the logic rules that you are trying to implement. that will make it easier to answer the question. 

thanks

des


Hello John,
Ah yes apologies. Here is what I have set up. I am actually struggling with how to get it to calculate the answer. Where do I put that so it displays the total and a summary of each item on the Ending. The variables are at the end but not sure if they are correct either :) I hope the below helps.
Many thanks for looking at this for me.
Jane


 


Hello ​@john.desborough 

i am wondering if the screenshots I sent last week were useful?

 

many thanks Jane

 


Hi Des ​@john.desborough 

my biggest problem is I don’t know how to calculate the result and display it as part of the ending. I am hoping you can shed some light. Many thanks Jane 


Reply