Mathematical Approach for calculating efficiency