Compute rate constant k for first‑order or second‑order reactions.
First-order: k = (1/t) ln(C₀/C)
Second-order (same reactant): k = (1/t) (1/C – 1/C₀)