derive_vars_period function

Add Subperiod, Period, or Phase Variables to ADSL