Update calc.py

It works. Simple. Easier than Javascript.