added missing time calculation to slopes