unfinished algo: timeScale