IMI calculation