Update calculate.py

Fixed a forgotten assignment and a few text output errors. File should be complete.