tool functions

including functions: translate time to distance and smooth