About 40 lakh people in 31 districts have been affected by the floods which have lasted for one month