Productivity checked. ProdCALC in MATLAB corrected