Basic script to calculate Ecomp for a file