rolling_reg_time function

Perform rolling regression based on time units.