`length_period` calculates the length of a period

length_period(s, e, size = 52)

Arguments

s,

numeric, starting date of period

e,

numeric, end date of period

size,

integer, maximum value of period, default to 52

Value

numeric value of period length