How can loop in calculated field?

please take a look at this article. It should have what you are looking for.