We introduce multikangaroo Markov processes and provide a general procedure for evaluating a certain type of stochastic functional. We calculate analytically the large deviation properties. We apply our results to zero-crossing statistics and to stochastic thermodynamics, including the derivation of the fluctuation theorem and the large deviation properties for the stochastic entropy production in a typical solid state device.