im-calculation