Finding distance based on speed and time