how to work out the distance something traveld code example Example: distance formula physics s = ut + 1/2 * a * t^2