Update PAIC.py

Added mathematical calculations