How do colleges view taking a pass/fail

Ive always been a B student and im trying my best to raise it this year, but my AP Enviornmental science class is way too hard for me. I want to take it pass/ fail so that my other classes will raise my GPA since I’m doing well in all my other classes. I got a 40 on my last test and thats never happened before. Its causing me a lot of stress. How would colleges view it if I took this one class pass/fail and passed? Would it affect my chances at the colleges I want to go to?

From what I’ve read, they recalculate "P"s in P/F classes as "C"s. I could probably find a link for this if someone insisted,