Formula
answer = "Unknown" if not (isKnown answer) and isKnown p1 answer = p1 if not (isKnown answer) and isKnown p2 answer = p2 if not (isKnown answer) and isKnown p3 answer = 100 - p3 if not (isKnown answer) if (isKnown female) and (isKnown male) answer = 100 * (female / (female + male)) else answer = "Unknown" answer