I had created a function to calculate Kakwani index in different provinces. It works well before. Firstly, we calculate sum of income divide between i\'th peo