Calculating the rate constant k of a first order reaction