I'm using this code to determine whether or not a group of questions should be displayed:
The desired function is to display a group of questions if the calculated age based on a birthdate in the token table in the format mm/dd/yyyy is <= 5.
What I discovered is that for the equation to calculate correctly, the birthdate has to be at least 2 days from the time the survey was started for the equation to work. For example, I start the survey today (i.e. 3/20/2015), the token field birthdate has to be at least 3/22/2010 before the calculation meets the condition and shows the group of questions for <=5. This does not seem right, as the child's birthday is 3/21/2010 and I start the survey on 3/20/2015 I should still get the questions for the <=5 people as I don't turn 5 until the following day (3/21/2015) from when I started the survey.
I imagine this might be a number formatting/round issues. Has anyone experienced this or can provide any guidance?