d[t_] := (2 - t)*t

Plot[d[t], {t, 0, 1}, 
      AxesLabel -> {"time", "distance"}]