I think the age at which you are considered a grognard is a moving target, being that it is a relative term.
Essentially follow the following formula which you might find correct under most circumstances (assuming the conditions):
if a/2 is > x,
then g = (a - x) + √a(e)
if a/2 is < x,
then g...