Calculating indexes

Currently under construction, come back soon!