The formula for allocating water under the treaty was based on historical flows during 1949-1988 , and this has now affected several upstream Indian states.