Dear Almas Malik,
Welcome to our support forums. It is nice to have you with us. Primavera automatically performs the critical path calculations whenever you press run (F9) based on your schedule relationships. to understand more about critical path method (CPM) calculations i would recommend you to read the following articles:
Please let me know if you need any further assistance or if i did not understand your question correctly.