time mean speed and space mean speed formula