Dear @dy10,
it is in the calculation column (as in @Kal_Lam example…
If your calculated variable can not be changed by the user, the type should better be “calculate” (or set as read_only = yes, if you want to show it).
Side-note: If possible, I would prefer to do calculations not KoBo, but after data export.)
There might be 2 small problems with the example from Kai.
With your type “select_one …” the user can still change the calculated variable,
If the Gestatiional age is empty, the calculation wou[d also produce No (2), but might better be empty.
I add an example for two other options. Esp. in case you want the automatic calculation only if the Gestatiional age is set (not empty). But you want the user to answer (yes or no), if the Gestatiional age is empty.