Range of cumulative sums, I. Exact and approximate expected values