A helper function to switch from original time periods to "new" time periods (which are just time periods going from 1 to total number of available periods). This allows for periods not being exactly spaced apart by 1.
orig2t(orig, original_time.periods)
new time period converted from original time period
a vector of original time periods to convert to new time periods.
vector containing all original time periods.