I need an optimized workflow - to recalculate all records in a collection

Can you add an example?