Period number, starting from the first time column
Totals the aggregates and inputs. The first time column is number 0.
The number of time columns in the model since the first period.
@if(@pdnum= 2, 1, 2)
This executes (result: 1) after the formula reaches the third time column in the model.