calcRevision function

Calculate revision values of an index