Speed is calculated by: