Given a range of items having size convert given indices to the cumulative size of all elements from the first one to elements with given indices
Given range of elements having size convert data convert window in size units sw to the result window in index units using current window in index units iw