Calculate PF