Fixed linear regression, made the time units Epoch seconds instead of milliseconds