Calculate file completed dynamically