Modify calc.pl