Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Using two numbers entered to caluclate a new number

More
9 years 5 months ago #129721 by mrsey
In a survey that I'm running I ask someone what age they started school and what age they finished school.

I currently ask them how many years they have been in school, but I'm wondering if I can automatically caluclate that using the two numerical responses for the age started and age finished school?

I'm asking the question in an array with a age started, age finish and number of years in school as three questions on the y-scale.

Is this something I could do with the expression manager?

I've attached the .lss file with only this question I am working on.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 5 months ago #129737 by holch
This is definitely something for Expression Manager. Have a look at the example of the BMI calculator. I am sure you can use parts of it for what you need (which is much simpler than the BMI calculator).

Help us to help you!
  • Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
  • Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose