Approximating the maximum consecutive subsums of a sequence