The "age-40" rule as it applies to 3rd-class medicals is dependent on what your age is at the time of the examination. Take it a day before you turn 40, and it's good for 36 calendar months...take it on your 40th birthday, and it will be valid for 24 calendar months.