Distance Between Two Year-Periods
This function returns the number of time periods that lie between the provided starting period x1=c(YEAR1,PRD1) and the provided ending period x2=c(YEAR2,PRD2), given a frequency f. 
NUMPERIOD(x1, x2, f = NULL)
| x1 | Starting period specified as a numerical array  | 
| x2 | Ending period specified as a numerical array  | 
| f | Frequency over the year. Must be a positive integer. | 
This function returns an integer of class numeric.
# f=5, c(3,4) - c(2,3) = 6 periods print(NUMPERIOD(c(2,3),c(3,4),5))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.