Why (Inc+Dec-1) to get max subarray?

I am not able to understand why we are doing ( increase +decrease - 1)??