completed pia calculation