Jet calculus beyond leading logarithms